Do you want to add css class to wp nav menu to change its appearance. Do you want to change wp nav menu link style.
In this tutorial, we are going to see how to add CSS Classes to menu items in WordPress.
With following these steps you can easily add class to ul in WordPress nav menu.
Let’s see
use this code in header.php where you want to display header menu
<?php wp_nav_menu( array( 'sort_column' => 'menu_order', 'container_class' => 'menu-header' ,'menu_class'=> 'nav navbar-nav navbar-right') ); ?>