WordPress.org

Ready to get started?Download WordPress

Forums

Items_wrap for wp_nav_menu not working? (4 posts)

  1. mtpultz
    Member
    Posted 1 year ago #

    I've been trying to remove the ul wrap but it doesn't work. This is exactly what the example in the codex described that I should do.

    <?php wp_nav_menu( array('menu' => 'Secondary', 'items_wrap' => '%3$s', 'after' => ' | ' ) ); ?>

    Any suggestions?

  2. mtpultz
    Member
    Posted 1 year ago #

    Well no matter what I do it still shows a list so I just dropped some CSS to fix it up but would have preferred to leverage the API so I didn't have excess or useless markup. Oh well, cheers

  3. everrrettt
    Member
    Posted 1 year ago #

    I'm having the same issue. I've tried the example on the wp_nav_menu page for removing the ul wrap on both the 2011 theme and the custom theme I am working on to no effect.

  4. mtpultz
    Member
    Posted 1 year ago #

    I never figured it out, I don't remember exactly, but I think I just took the markup and striped the tags I didn't want using PHP.

Topic Closed

This topic has been closed to new replies.

About this Topic