Hi,

I am displaying primary menu block in my site. In header part of my theme there are links like in this page above. example: Documentation, Download, Support etc.

Now when i click on link of header part that link highlights and same link in primary menu block also highlights. I want to display in primary menu block only that highlighted link wih its secondary links if any.

Help me in this issue.

Thanking you in advance! :)

Comments

pushkarpathak’s picture

To print child menus your can use this code

$localNav = _menu_get_active_trail();
if($localNav[1]) {
print theme_menu_tree($localNav[1]);
}

Best
Pushkar Pathak
www.excelsolutions.biz

zeal’s picture

Thanks for nice reply Pushkar,

But i cnt get your code. and i want to display only active menu. but primary and secodary both not only child terms........Do u get what i say?

Ex. one menu like

Documets
--Doc1
Forum
--Forum1
--Forum2

Now when i click on "Forum" i want to display like this in block of primary menu:
Forum
--Forum1
--Forum2

not only
--Forum1
--Forum2