Closed (fixed)
Project:
Zen
Version:
7.x-3.x-dev
Component:
PHP Code
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
13 Feb 2011 at 19:43 UTC
Updated:
5 Mar 2011 at 10:51 UTC
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
Comment #1
tofumidget commentedI 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
Comment #2
n8tronMost 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.
Comment #3
johnalbinThe 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.
Comment #4
wind_kind commentedThanks, 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.