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.

jeevanism
 
jeevanism replied on at Permalink Reply 2 Attachments
jeevanism
Adding some more information to this issue. I echoed these values in my header_menu.php. (yes, now I am using a template for autonav).

echo $c->getCollectionID();
echo $_c->getCollectionID();


The result is different in EDIT mode and normal mode...

attaching the screenshots
jasteele12 replied on at Permalink Reply
jasteele12
Do you have an unapproved (not-yet-published) version of that page?
adajad replied on at Permalink Reply
adajad
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.