Autonav Classes working in Edit Mode only
Permalink
Hey all,
I need a small help on this. I am using autonav block for my header menu, no template, just the default one. I tried to make css styling that I can highlight the current menu page. In order to do that, I need to add a <current> class. The Autonav code produce <current> class in EDIT mode only. But when It comes to normal mode, FireBug shows no class to my <li> elements.
Any idea why ??
I am attaching screenshot of Edit mode and Normal Mode.
I need a small help on this. I am using autonav block for my header menu, no template, just the default one. I tried to make css styling that I can highlight the current menu page. In order to do that, I need to add a <current> class. The Autonav code produce <current> class in EDIT mode only. But when It comes to normal mode, FireBug shows no class to my <li> elements.
Any idea why ??
I am attaching screenshot of Edit mode and Normal Mode.
Do you have an unapproved (not-yet-published) version of that page?
When you say "no template" does that include the default templates as well? Why I'm asking is because the core header_menu.php template adds class 'nav-selected' to the current page. So if you use that template you can add your styling to .nav-selected in your css.
echo $c->getCollectionID();
echo $_c->getCollectionID();
The result is different in EDIT mode and normal mode...
attaching the screenshots