I need to set menubar so that when a a Page is open a certain Category Tree has display:block assigned to it. I've gotten as far as if I'm on a page changing $default_inove but I'm changing the style on every category Tree rather than the one I want.
Is it possible to make $name available to the template so I can assign the style to a specific Category Tree when a page is open?
http://wordpress.org/extend/plugins/menubar/
Hello Tpohare,
As you can see your template makes a call to wpm_out41(), so you could copy the function wpm_out41() from wpm-menu.php to your template, then change its name so it doesn't conflict with the original one.
Now you can modify your copy of wpm_out41(). Inside that function you can access the menu item data in the standard class $item, so your modification could be something like this:
if (is_page('My Page')) && $item->name == 'My Category Tree')
{
$item->cssclass = someclass ...
AND/OR
$item->attributes = some attribs ...
}
Worked perfectly, thank you.