I have created a new region by adding regions[footer] = Footer this line in the .info file of my theme but it is not showing in the site admin panel.
the drupal version i m using is 6.6

please hep

Thanks in advance

Comments

Cayhn’s picture

You have to add it in the page.tpl.php file too. Like this:

<?php if ($footer): ?>
        <div id="footer" class="footer">
          
          <?php print $footer ?>
        </div>
      <?php endif; ?>
papun’s picture

I have to create a new region.
so i added the line in .info file
i can add the above code when i can see it in the admin panel and i add something into it then to show it in the user end i will use the above code

but the problem i am facing is that the region is not showing in the admin side i.e in admin/build/block

pls help

Cayhn’s picture

thats just weird, I have a smiliar problem, I can only get 3 of my 5 custom regions to show up in the admin/build/block... I am as frustrated as you so I cant help you :(

davemybes’s picture

You have to have the code in your page.tpl.php for it to show up in admin/build/block. Without the code, Drupal cannot know where this region is supposed to appear, so will not show it.

And don't forget to clear the cache (admin/settings/performance) after making changes to the .info file.
______________________________________________________________________________________________________
mybesinformatik.com - Drupal website development

______________________________________________________________________________________________________

jwilde’s picture

http://drupal.org/node/29139

exmple of a function you'll need to add to your template.php file.

function mytheme_regions() {
  return array(
    'right' => t('right sidebar'),
    'content' => t('content'),
    'header' => t('header'),
    'footer' => t('footer'),
    'floater' => t('floater'),
    'inline1' => t('inline 1')
  );
}
Jeff Burnz’s picture

That is perfect for Drupal 5, but the OP's request is for Drupal 6 - see http://drupal.org/node/337173 as a starting point.