<li class="home-page"><a href="index.html"><span></span></a></li>
<li ><a href="about.html">About</a></li>
<li><a href="services.html">Services</a></li>
<li><a href="projects.html">Projects</a></li>
<li><a href="clients.html">Clients</a></li>
<li><a href="contacts.html">Contacts</a></li>ul.menu li.home-page span {background:url(../images/home-page-img.png) 0 0 no-repeat; width:19px; height:19px; display:block}[[Wayfinder? &startId=`0`&outerClass=`menu` &firstClass=`home-page`]]
This question has been answered by ottogal. See the first response.
$('li.home-page').children().replaceWith('<span></span>');Brace yourself, noobs are posting code.
<li[[+wf.classes]]><a href="[[+wf.link]]" >[[+wf.linktext:is=`Home`:then=`<span></span>`]]</a>[[+wf.wrapper]]</li>
Presuming my home page is the first item in the list, I'd just use the &firstClass=`home-page` in the Wayfinder properties, put span tags in the rowTpl, then use CSS to deal with .home-page span{} styling.But how to delete titele from first item?
Quote from: sottwell at Jan 15, 2013, 12:30 AMPresuming my home page is the first item in the list, I'd just use the &firstClass=`home-page` in the Wayfinder properties, put span tags in the rowTpl, then use CSS to deal with .home-page span{} styling.But how to delete titele from first item?
.home-page span{ display:none; }[[+wf.linktext:is=`Home`:then=`<span></span>`]]
[[+wf.linktext:isnot=`Home`:else=`<span></span>`]]
In the meantime I could test my proposal of using an output modifier in the &rowTpl chunk.
It turns out that this does not work:
The other items' linktexts would be empty.[[+wf.linktext:is=`Home`:then=`<span></span>`]]
But changing it to this:
results in the wanted output.[[+wf.linktext:isnot=`Home`:else=`<span></span>`]]