#14235 closed enhancement (fixed)
Add ability to remove ul tag from wp_nav_menu result
Reported by: | spangborn | Owned by: | filosofo |
---|---|---|---|
Milestone: | 3.1 | Priority: | normal |
Severity: | normal | Version: | 3.0 |
Component: | Template | Keywords: | has-patch |
Focuses: | Cc: |
Description
The new (and awesome) wp_nav_menu() function provides the ability to remove the "container" ( the DIV that wraps around the entire result), but you can't remove the UL that wraps the list items at present to only produce the list items. It'd be really awesome if it were possible to remove the UL tags, as it would enable theme designers/developers to use the new wp_nav_menu() inside of pre-existing UL's for things like inline navigation menus on the top of a page.
Attachments (1)
Change History (5)
Note: See
TracTickets for help on using
tickets.
I agree, and I think the way to do it is to be able to pass element patterns. So for example something like this, perhaps: