Forums
Forums / Themes and Templates / wp_nav_menu() excess css code and req walker example
(@tapdance)
15 years, 1 month ago
wp_nav_menu() is giving me headaches again.
This is what i have put in header.php [Code moderated as per the Forum Rules. Please use the pastebin]
As you can see above, all css tags are removed/disabled.
Yet despite my explicit declaration NOT to use any css, wp_nav_menu() still inserts this in HTML section for navigation :
[Code moderated as per the Forum Rules. Please use the pastebin]
What is class="menu-item menu-item-type-post_type menu-item-object-page menu-item-28" doing here ? Why is it inserted ?
class="menu-item menu-item-type-post_type menu-item-object-page menu-item-28"
Can i use walker function to regain control of generated HTML, and if so, can anyone point me to example PHP source ?
The topic ‘wp_nav_menu() excess css code and req walker example’ is closed to new replies.