I need help with how to turn my Secondary Menu into a Nice Menu. The problem is that there is no region location to affix the nice menu block to. The theme I'm using is Aboutpeople which has the following regions: Header, Content Top, Content, Right, Left, Footer.
I'd like to do this without creating a new region. Is it possible by changing page.tpl?
I'm rather new to php so any code snippets would be appreciated!
Comments
Comment #1
jhofer commentedI figured out how to get the secondary links menu to drop down... not pretty but it works. since there's no "nice_menu_secondary_links" - I placed the 'nice_menu_primary_links' which calls the nice menu block... in the submenu section... this is what it looks like in the page.tpl file:
The 'Primary Menu' items now go where the secondary menu is. I wanted this layout with the drop down menu below the header picture in the Aboutpeople theme.
Comment #2
izmeez commentedI've used the nice menus module 6.x.-2.x-dev for a while now, thanks - it's great.
Just recently, I was exploring using nice menus for the secondary menu.
I am using a zen subtheme and edited the page.tpl.php just editing one line from
<?php print theme('links', $secondary_links); ?>to
<?php print theme('nice_menus_secondary_links', $secondary_links); ?>so the block appears as
This works, including the drop downs menu items but I have two problems I would appreciate help with.
1. Hover over any secondary menu item (parent) does reveal the vertical drop down, however, hover over one of the children causes a drop down in exactly the same place, it does not appear in a separate column to the side of the first.
2. The width of the drop down menu is wider than needed. Can this be adjusted?
This does not happen when I use the nice menus in a block. The heirarchy of menus works perfectly with hover. The width of the drop down on closer examination does seem a bit wider than needed for the menu items, but not as wide as in the secondary menus.
I would like to be able to have nice menus work for the Secondary menu and would appreciate any ideas on how best to do this. Thanks,
Izzy
Comment #3
izmeez commentedI have decided to abandon the approach of using Nice Menus in the Secondary menu. The CSS effects are quite weird and having a separate region works much better for me.
Izzy
Comment #4
add1sun commentedno response from OP.