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.
Hello Developer,
I was wondering if there was a way to hide, disable, or remove the main menu from the top of the theme?
I want to only display the main menu on the sidebars. Any suggestions for doing this would be appreciated.
Thank you!
Chris
Comments
Comment #1
clchleung CreditAttribution: clchleung commentedHello Developer,
So I played around today on the drupal site and figured out how to hide the menu myself. I went to appearance, settings, checked off the main menu and clicked save configuration. That happened to be exactly what I wanted!
Regards,
Chris
Comment #3
mfby2k CreditAttribution: mfby2k commenteddelete this code from page.tpl.php for the removing the menu bar completely
if (isset($main_menu)) :
print theme('links__system_main_menu', array('links' => $main_menu, 'attributes' => array('class' => array('menu', 'clearfix'))));
endif;