• Resolved yogesvamp

    (@yogesvamp)


    I used 
    
    add_filter('nav_menu_css_class', 'my_css_attributes_filter', 100, 1);
    add_filter('nav_menu_item_id', 'my_css_attributes_filter', 100, 1);
    add_filter('page_css_class', 'my_css_attributes_filter', 100, 1);
    function my_css_attributes_filter($var) {
      return is_array($var) ? array() : '';
    }
    
    This removed the class from my
    
    <li> but i also want to remove the id from
    <ul>
    any idea
Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    why? what are ou trying to accomplish?

    Thread Starter yogesvamp

    (@yogesvamp)

    Well I just finished designing a website using bootstrap..and I am trying to turn that to WordPress..I am having problems with my navigation which works perfect in the static site.. instead of finding a walk around I just wanted WordPress to stop generating those Id .. and I am just a starter with WordPress

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    In what way does having that ID cause your site harm? No harm, no foul, move on to more productive things.

    If you need a wp-compatible bootstrap menu walker, you can grab it from here: https://github.com/Themekraft/_tk/tree/master/includes

    Thread Starter yogesvamp

    (@yogesvamp)

    Ok. Thank you . This was helpful:)

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Remove the ul id from wordpress navigation’ is closed to new replies.