Opened 9 years ago
Closed 8 years ago
#37003 closed defect (bug) (invalid)
Removing `menus` support for a theme doesn't remove Menus section in Customizer
Reported by: | slaFFik | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Customize | Keywords: | close |
Focuses: | Cc: |
Description
Removing menus
support for a theme doesn't remove Menus section in Customizer.
I'm using this code:
<?php function theme_setup() { remove_theme_support( 'menus' ); } add_action( 'after_setup_theme', 'theme_setup' );
Tested in 2016 with remove_theme_support( 'menus' );
and commented out code about registering menus locations.
Change History (5)
#2
@
9 years ago
But the theme doesn't have registered sidebars. So I can't use that widget, I even don't have a Widgets menu, and don't have Menus menu.
So why should I have Menus in Customizer?
#3
@
9 years ago
If you want to disable the nav menus component in the Customizer, you can currently use the customize_loaded_components
filter as shown here: https://developer.wordpress.org/reference/hooks/customize_loaded_components/#comment-1005
#4
@
9 years ago
@westonruter Thanks.
I've evaluated my Customizer needs, and decided to completely disable and hide it.
#5
@
8 years ago
- Milestone Awaiting Review deleted
- Resolution set to invalid
- Status changed from new to closed
It looks like there isn't a core issue here. Menus are available when themes add support for menus or widgets by registering menu locations and sidebars. If this isn't happening for anyone, please reopen the ticket.
Menus can also be used by the Custom Menu widget.