WordPress.org

Ready to get started?Download WordPress

Forums

add id for the ul in wp_nav_menu (3 posts)

  1. ahmed_badawy
    Member
    Posted 1 year ago #

    hello,
    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">
    <ul>

    I looked at
    http://codex.wordpress.org/Function_Reference/wp_nav_menu

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

  2. noahjonah
    Member
    Posted 1 year 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
    Member
    Posted 1 year 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