I want to add a class to highlight the selected menu in wordpress. I have done this in html by the following code.
<ul class="nav navbar-nav" >
<li class="active-link"><a href="">Home</a></li>
<li><a href="">About Us</a></li>
<li><a href="">Our Services</a></li>
<li><a href="">Case Studies</a></li>
<li><a href="">contact</a></li>
</ul>
How can i do this in wordpress?
used this code
Add this line off code function.php
You could try nav_menu_css_class in wordpress.