add id for the ul in wp_nav_menu (3 posts)

  1. ahmed_badawy
    Posted 3 years ago #

    I need the wp_nav_menu() output to be like this

    <div class="menu">
    <ul id="menu">

    Now the output like this

    <div class="menu">

    I looked at

    And every thing i try same output code to me, nothing change!!

  2. noahjonah
    Posted 3 years ago #

    Not sure what you are trying to accomplish.
    Maybe add a CSS"class" to the menu item instead of a div if this is for styling purposes.

  3. ahmed_badawy
    Posted 3 years ago #

    I have a JavaScript menu and i need to add id to the main ul
    If i will go other way it will make me redesign my menu :(, its gonna wasting my time because just id :(

Topic Closed

This topic has been closed to new replies.

About this Topic