Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
How can I modify the page.tpl.php file to allow the main menu to print even when I add a block to the header region? Currently if I add a block to the header, the menu disappears. Any help would be most appreciated. I am trying to add third navigation for about, contact etc.
I believe this is the code:
Comments
Comment #1
gtsopour CreditAttribution: gtsopour commentedComment #2
gtsopour CreditAttribution: gtsopour commentedHello Josh,
there is no need to edit the code at the page.tpl.php template file. Just place the already existing Main menu block (in this way you keep the Main menu) to the Header region and any other block you want through Home » Administration » Structure » Blocks
Thanks
/George
Comment #3
sjosh36 CreditAttribution: sjosh36 commentedThanks George,
Sometimes it is the simplest of answers :). That worked as suggested, only question is, how do I now remove the "Main Menu" title?
Thanks,
Josh
Comment #4
sjosh36 CreditAttribution: sjosh36 commentednever-mind worked.
Comment #5
gtsopour CreditAttribution: gtsopour commentedHello Josh,
just edit the Main menu block through Home » Administration » Structure » Blocks and set its title .
Thanks
/George
Comment #6
gtsopour CreditAttribution: gtsopour commentedok Josh,
I am glad to hear that you have resolved your issues.
Thanks
/George