Support » Fixing WordPress » Items_wrap for wp_nav_menu not working?
4 years, 6 months 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' => ' | ' ) ); ?>
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
4 years, 2 months 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.
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.