<li class="current_page_item">Home<span>
<li class="current_page_item">[[Wayfinder?&startId=`0` &level=`1`]]<span>
<ul class="bg4">
<li class="first"><a href="#" id="menu1" accesskey="1" title="" class="link1">Homepage</a></li>
<li><a href="#" id="menu2" accesskey="2" title="" class="link1">Articles</a></li>
<li><a href="#" id="menu3" accesskey="3" title="" class="link1">Resources</a></li>
<li><a href="#" id="menu4" accesskey="4" title="" class="link1">Events</a></li>
<li><a href="#" id="menu5" accesskey="5" title="" class="link1">Contact</a></li></ul>
<ul class="bg4">
<li class="first"><a href="#" id="menu1" accesskey="1" title="" class="link1">Homepage</a></li>
<li><a href="#" id="menu2" accesskey="2" title="" class="link1">Articles</a></li>
<li><a href="#" id="menu3" accesskey="3" title="" class="link1">Resources</a></li>
<li><a href="#" id="menu4" accesskey="4" title="" class="link1">Events</a></li>
<li><a href="#" id="menu5" accesskey="5" title="" class="link1">Contact</a></li></ul>
[[!Wayfinder? &startId=`0` &level=`1` &rowTpl=`scotiahousemenu` &hereClass=`link1`]]
<li [[+wf.classes]]><a href="[[+wf.link]]" title="[[+wf.title]]" [[+wf.attributes]]>[[+wf.linktext]]</a>[[+wf.wrapper]]</li>
&hereTpl=`yourchunkname`
<li [[+wf.classes]]><a href="[[+wf.link]]" title="[[+wf.title]]" [[+wf.attributes]] class="link1">[[+wf.linktext]]</a>[[+wf.wrapper]]</li>
Hi thanks for the reply. I’m still a bit confused with this, should my call have your chunk and the one from the earlier post in that I set up also? This didn’t seem to work when I added it in. So I removed the other chunk and just tried yours with this call: [[!Wayfinder? &startId=`0` &level=`1` &hereTpl=`scotiahousemenu`]]
I think your problem may be this: you have the ’here’ class (link1) applied to your actual a tag, but WF inputs classes where you put the [+wf.classes+] tag, hence, your ’link1’ class is ending up in your li tag, when your CSS is looking for it in your a tag. Check your output HTML to make sure I’m right, and then you can change your CSS to read for your li, or you can do the following (this is what I usually do):
Add in this parameter to your WF call:
&hereTpl=`yourchunkname`
and add this chunk:
<li [[+wf.classes]]><a href="[[+wf.link]]" title="[[+wf.title]]" [[+wf.attributes]] class="link1">[[+wf.linktext]]</a>[[+wf.wrapper]]</li>
Personally, I don’t use links for the ’here’ tag, as that is bad SEO - don’t link to the page you are on. I either put in a class="current" to the li, or I wrap the button in a span tag, then use CSS to style accordingly. Hope that helps!
<ul class="bg4">
<li class="first"><a href="#" id="menu1" accesskey="1" title="" class="link1">Homepage</a></li>
<li><a href="#" id="menu2" accesskey="2" title="" class="link1">Articles</a></li>
<li><a href="#" id="menu3" accesskey="3" title="" class="link1">Resources</a></li>
<li><a href="#" id="menu4" accesskey="4" title="" class="link1">Events</a></li>
<li><a href="#" id="menu5" accesskey="5" title="" class="link1">Contact</a></li></ul>