We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 5763
    • 59 Posts
    How can i assign a class to to the current link ?
    			<ul>	
    
    				<li><a href="#"><span class="key">A</span>casa</a></li>
    
    				<li><a class="current" href="#" accesskey="v"><span class="key">S</span>tiri</a></li>
    
    				<li><a href="#"><span class="key">A</span>rticole</a></li>
    
    				<li><a href="#"><span class="key">D</span>irector</a></li>
    
    				<li><a href="#"><span class="key">F</span>orum</a></li>
    
    				<li><a href="#"><span class="key">S</span>itemap</a></li>
    
    			</ul>

    I need to be able to put that "current" class. Any ideas ?
      Be Smart, Think Free, Choose OpenSource
      • 23050
      • 1,842 Posts
      Hello,

      By default, Wayfinder adds the .active class to li element. Then, you only need to call the link with :

      li.active a
      • There is an option that lets you specify the classname to use for the "active" item.
          Studying MODX in the desert - http://sottwell.com
          Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
          Join the Slack Community - http://modx.org