Remove the id and class from the tags in the wp_nav_menu() function
-
How do I do to remove the class and the id from the
li tag in the wp_nav_menu() function or at least how can I rename them so they don’t have such a long names with more than one class like the li in the following example<ul id="topnav"> <li id="menu-item-4" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-4"><a href="https://mysite/">Home</a></li> <li id="menu-item-5" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-5"><a href="https://mysite/">Mobile</a></li>
Thanks
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Remove the id and class from the tags in the wp_nav_menu() function’ is closed to new replies.