Support » Fixing WordPress » Items_wrap for wp_nav_menu not working?

  • 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?

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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

    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.

    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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Items_wrap for wp_nav_menu not working?’ is closed to new replies.