Hi,

I'm using the supperfish module for my menu needs and I placed its block at the top of the site and removed all menu blocks from display but the main menu still shows on every page. I don't know how to remove it from the page.tpl.php without it affecting the supperfish menu or just getting rid of it through the UI.

How can I get rid of the main menu?

Here is a link to the site. www.skyline.crystal-concept.com

Thanks

Comments

tofumidget’s picture

I had the same issue. If you check the settings for the Zen theme (or your subtheme) you should find a check box for the main menu. I unchecked the box, then added the main menu in the block configuration. Give that a shot.

---Jess

n8tron’s picture

Most of the time, the hard coded main menu code in page.tpl.php gets in the way. Copy page.tpl.php to your subtheme and remove the following.

        <?php print theme('links__system_main_menu', array(
          'links' => $main_menu,
          'attributes' => array(
            'id' => 'main-menu',
            'class' => array('links', 'clearfix'),
          ),
          'heading' => array(
            'text' => t('Main menu'),
            'level' => 'h2',
            'class' => array('element-invisible'),
          ),
        )); ?>
johnalbin’s picture

Status: Active » Fixed

The preferred method for turning off the theme's primary and/or secondary links is to follow the "settings" link on the admin Appearance page and uncheck the "Main menu" or "Secondary menu" checkboxes.

With the method described in #2, Drupal core will still generate the un-rendered links for the $main_menu and $secondary_menu variables. That's wasted CPU cycles if you just remove them from the tpl.

wind_kind’s picture

Thanks, I should have tried switching off the main menu in the settings first before posting a question. I just assumed that it would disable the superfish menu as well.

@John: Thanks for that tip, I removed that code from a couple of sites and this is probably what added to them being slow, I will remember this for future projects.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.