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.
The main menu does not disappear when the option on theme's Settings page is unchecked, even after clearing the cache. The only way I was able to get it to go away was to change this line in page.tpl.php from:
if ($mainmenu):
to:
if ($mainmenu && !empty($main_menu)):
Obviously deleting the code would have worked also, but I use this same template file on other sites that DO use the main menu, so that solution wasn't desirable...
This problem occurred on 7.x-3.0-Beta11
Comments
Comment #1
djsagar CreditAttribution: djsagar at OpenSense Labs commentedHi,
You can override page.tpl.php to page--front.tpl.php then disappear the main menu from the front page.
Thanks!