Main Navigation selected

Permalink
hello

I have a problem with CSS and "active" link selection. I would to have the main menu item selected while browsing subpages.

I have read this topics:

http://www.concrete5.org/community/forums/customizing_c5/main_navig...

http://www.concrete5.org/community/features/main_navigation_selecte...

The topics describes my problem.

But the link from andrew in the last topic doesn't work :-|

Can someone help me?

Thanks

marius

marius
 
frz replied on at Permalink Reply
frz
both links work for me, and i think this has been updated in core anyway - you shouldn't need the patch.
nathan replied on at Permalink Reply
nathan
I'm not having any issues like this in 5.3.1.1, what version are you running?
marius replied on at Permalink Reply
marius
When i use the custom template "Header Menu" it "works". But the class defination are strange:

<ul class="nav-header"><li class=" first"><a href="/">Home</a></li><li class=" "><a href="/index.php/about/">About</a></li><li class="nav-selected "><a href="/index.php/weltreise/">Weltreise</a></li><li class=" "><a href="/index.php/contact/">Contact</a></li></ul><div class="ccm-spacer">&nbsp;</div> </div>

-> class="nav-selected "
-> class=" first"

But now i think i can edit the "Header Menu" template for adjustments. Or i must change my CSS -> @Nathan can you give me an example from your CSS code? Thank you very much

I have tomorrow time for an exact analyse, i will give you a feedback.

Thanks for the answers

greez
marius replied on at Permalink Reply
marius
ok now it works with the custom template "Header Menu". I use the css class nav-selected.

Thanks for help.

Greez

marius