Hi Guys,
I thought I should repost this as I originally posted in a thread that was quite old, so is perhaps not getting as many views now. I had some brilliant help with this so far, now I am just needing some help on the final little bit. I have tried to find this out but there doesn’t seem to be anything out there similar to my problem.
Basically due to the way I have worked the menu which you will see from the callouts and the CSS (using absolute and relative positioning to position the sub navs for Gallery and Commissions), my "is here" state or active state (blue) is running right through to the sub nav. I only want the active page to be highlighted in the menu.
Another issue is that once the child page is clicked on the sub menu then disappears?
Any help with this will be greatly appreciated.
Thanks a lot.
My wayfinder call is as follows:
[[Wayfinder? &startId=`0` &innerClass=`sub` &rowTpl=`wfRowTpl` &hereClass=`here`]]
My Css for the navigation:
}
#nav {
float: left;
display:block;
}
#nav ul {
line-height: 24px;
margin: 0px;
padding: 0px;
width: 100px;
}
#nav li a, #nav li a:visited {
font-family: Arial, Helvetica, sans-serif;
font-size: 11px;
font-weight: bold;
text-transform: uppercase;
color: #FFFFFF;
text-decoration: none;
}
#nav li a:hover {
font-family: Arial, Helvetica, sans-serif;
font-size: 11px;
font-weight: bold;
text-transform: uppercase;
color: #0099FF;
text-decoration: none;
}
#nav li.here a {
font-family: Arial, Helvetica, sans-serif;
font-size: 11px;
font-weight: bold;
text-transform: uppercase;
color: #0099FF;
text-decoration: none;
}
#nav .sub {
top: 0px;
left: 120px;
position: absolute;
}
#nav ul ul {
display:none;
}
#nav ul li.here ul {
display:block;
}
#nav ul li {
position: relative
}
This is the site as it is working now:
http://www.squaredgepictures.co.uk/cmstemp/
As you can see the here class is being applied to the sub nav before I have clicked on it. I understand this is probably because it is running down the list from the main nav active state but how do I stop this?
Thanks again for all of your time.
Edit 1 : here is my &rowTpl code:
<li[+wf.id+][+wf.classes+]>
<a href="[+wf.link+]" title="[+wf.title+]" [+wf.attributes+]>| [+wf.linktext+]</a>
[+wf.wrapper+]
</li>
At the moment this just adds this | to my menu items. perhaps the problem with the disappearing lies here?