I'm currently trying to figure out, how I can add a class to the wp_nav_menu links <a>. I can always found question and tutorials how I can change the <li> or <ul> class of the generator, but nothing about the link <a> classes.
This is my little piece of code:
<div class="navbar">
<ul>
<li><a class="add-class-here" href="#">Menu 1</a></li>
<li><a href="#">Menu 2</a></li>
<li><a href="#">Menu 3</a></li>
</ul>
</div>
As you can see, I want to add a class to the <a> (link) element. How the hack can I do this?
.add-class-hereyou would have to select.add-class-here a, since the article I sent adds a class to the<li>element - Derk Jan Speelman