Hi,

I've done some searches on this topic but can't find a clear answer...

I am trying to add Nice Menu to my primary links. In other words, I want the primary links menu to be Nice Menu-style, but I don't want to have to create the menu as a block.. I just want it to be part of my primary links. When someone hovers over one of the primary links I want the menu to expand, nice-menu style.

After doing some research.. I found suggestions about adding this code to page.tpl.php:

print theme('nice_menu_primary_links')

My question for this is, will this add a block to the primary links or just theme my primary links to be nice-menu style?

Also, I don't see the print theme code in my page.tpl.php for the primary links. Instead what I see is:

if ($primary_menu):

print $primary_menu;

endif;

What am I missing here? How do I go about doing what I want to do?

As always, thank you for the help!

Comments

mxer269’s picture

Ok I just figured it out by just replacing this code:

if ($primary_menu):
print $primary_menu;
endif;

with:

print theme('nice_menu_primary_links')
dityat’s picture

Hi, I am new in drupal. So, my apology if my question may sound too simple for you.

Did you make a code replacement in page.tpl.php under templates folder of your theme? Do you think this solution is a generic solution for all themes? I am using a nitobe theme and I don't find the exact lines you indicated. What I found on page.tpl.php is as follow: (numbers are line numbers)

73 if (isset($nitobe_primary_links)):
74

dityat’s picture

I found it a little tricky for this theme. So if you have time to and inspired to do elaborate on this, I really appreciate it. Otherwise, it is fine. I apply the solution on another theme and it works. So I guess, I will just need to spend a little more time on this Nitobe theme myself.