I am using
<?php
wp_nav_menu(
array(
'theme_location' => 'header-menu',
'menu_class' => 'nav-bar',
'container' => 'nav'
)
);
?>
to output my navigation menu list. Currently they automatically get classes added to them like page-item-8
, page-item-6
. I work on a local machine and upload to my server. My problem is the page-item
numbers are different and I can't select them properly. What I want to do is add a class home
, shop
, services
, etc to the respective list item.
Is there a better way to do this.
Thanks in advance.