I've installed nice menus module. If I put a nice menu in the main content region of my theme, I see the menu. I've added a region though, to put it in and when I put it in there, I can't see the nice menu. I think I'm confusing regions with div's in the page.tpl. How do I put the new region in the page.tpl?

Thanks.
R

Comments

itqn2004’s picture

Hi ricksta.
If you use drupal 6.x.
You need to define the region in the file. Info
then you print it to the page file
Clear memory cache after you edit the file.
Example :


  ; To add a new region, copy Zen's page.tpl.php to your sub-theme's directory,
  ; add a line line to this file, and then add the new variable to your
  ; page.tpl.php template.
regions[top]            = top ; custom region top
regions[left]           = left sidebar
regions[right]          = right sidebar
regions[navbar]         = navigation bar

in page.tpl.php you print:

<div id="page" class="container">
<?php if ($top): ?>
<div id="top"><?php print $top; ?></div>
<?php endif; ?>
...

http://jobs68.com
Build Drupal website please contact me itqn2004@gmail.com
TanTran

ricksta’s picture

thank you kindly.
That works.