We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 11488
    • 1 Posts
    Hi Group, Yeah I’m a newbie:) Have a question about Wayfinder and how to get a class tag in the <a href=me.com" class="me">. I have spent 2 hours just looking and trying different things and got a big zip. Here is what I am using in my template [!Wayfinder?startId=`0` &level=`1` &outerClass=`navigation`!] this is the basics and had it up to just about every tag and came up short. Please o please help! Using Wayfinder 2.0. Thanks:)
      • 15987
      • 786 Posts
      If you want the classes on the href instead of the li you need to make a custom template.

      so create a chunk named wfRow and add the following:

      <li[+wf.id+]>
      	<a href="[+wf.link+]" title="[+wf.title+]" [+wf.attributes+][+wf.classes+]>[+wf.linktext+]</a>
      	[+wf.wrapper+]
      </li>
      


      then change your snippet call to
      [!Wayfinder?startId=`0` &level=`1` &outerClass=`navigation` &rowTpl=`wfRow`!]
      


      now when you set the row level class parameters they will be added to the href and not the li. if you want the same calss for each item you could also hard-code it in you template.
        • 6561
        • 139 Posts
        This is exactly what I was looking for as well.

        Great tip. smiley