Hi,
I’ve got a super easy way if you don’t mind putting the class on the link instead of the LI:
Edit your Green document, and just put
... in the Link Attribute. And you get this:
<ul>
<li><a href="something" class="green">Green</a></li>
</ul>
Otherwise you can use the Link Attribute as above, then you can template the <li> and change your Wayfinder call to use that template.
Here’s the template chunk for your Row Template, I’ll name it MyMenuChunk. Notice how I added attributes to it.
<li[+wf.id+][+wf.classes+] [+wf.attributes+]>
<a href="[+wf.link+]" title="[+wf.title+]">[+wf.linktext+]</a>
[+wf.wrapper+]
</li>
And your call will be something like this, calling the chunk:
[[Wayfinder? &startId=`0` &level=`1` &rowTpl=`MyMenuChunk`]]
This is the Evo version. Slightly different syntax for Revo for chunk and call. You can work that out.
Cheers, Dave