How to add class to anchor using wp_nav_menu
-
I’m newbie on develop wp theme. Now i’d like to add class to current li and last li, but i don’t know how to do? Hope someone help.
Here is my HTML code:
<nav> <ul> <li><a href="#" class="selected">Home</a></li> <li><a href="#">About</a></li> <li><a href="#" class="last">Contact</a></li> </ul> </nav>
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘How to add class to anchor using wp_nav_menu’ is closed to new replies.