WordPress.org

Ready to get started?Download WordPress

Forums

wp_nav_menu() excess css code and req walker example (1 post)

  1. tapdance
    Member
    Posted 3 years 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 ?

    Can i use walker function to regain control of generated HTML, and if so, can anyone point me to example PHP source ?

Topic Closed

This topic has been closed to new replies.

About this Topic