Hey, I have a slight problem with wayfinder. I’m trying to style the active item so that the user would know which page he is browsing. So I style the link:
#navigation ul li.active a {
color: #666666;
}
However, as the class is applied to the <li> element, the same effect is applied to all <li> elements of the nested 2nd level list. My wayfinder call looks like this:
[!Wayfinder? &startId=`[[UltimateParent]]` &level=`0`!]
When browsing one of the 2nd level pages, this will output:
<ul>
<li class="first active"><a href="/sl/turvallisuusratkaisut/lukitukset" title="Lukitukset" >Lukitukset</a>
<ul>
<li class="first"><a href="/sl/turvallisuusratkaisut/lukitukset/iloq" title="iLoq" >iLoq</a></li>
<li class="active"><a href="/sl/turvallisuusratkaisut/lukitukset/dorma" title="Dorma" >Dorma</a></li>
<li class="last"><a href="/sl/turvallisuusratkaisut/lukitukset/hid" title="HID" >HID</a></li>
</ul>
</li>
<li><a href="/sl/turvallisuusratkaisut/helat" title="Helat" >Helat</a></li>
<li class="last"><a href="/sl/turvallisuusratkaisut/ovisulkimet" title="Ovisulkimet" >Ovisulkimet</a></li>
</ul>
Because the 2nd level list is nested within the active <li> element, all the links now show as grey, regardless of being active or not. I know setting "active" class to <a> instead of <li> would solve the problem, but I have no idea how to do it. Or if there’s a better way to do it I’m open to suggestions. Thanks in advance.