Opened 16 years ago
Closed 16 years ago
#14614 closed enhancement (duplicate)
Can't remove container in wp_nav_menu
| Reported by: | netweblogic | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Menus | Version: | 3.0.1 |
| Severity: | normal | Keywords: | menu |
| Cc: | Focuses: |
Description
I notice that whether I provide false, null, empty string, etc. the container doesn't get removed if the default fallback method is used
I think it would make sense to add the 'container' option to wp_page_menu so it gets passed on from wp_nav_menu and doesn't break theme HTML:
wp-includes/post-template.php - line 864
$menu = '<div class="' . esc_attr($args['menu_class']) . '">' . $menu . "</div>\n";
Change History (2)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
#13998