Remove a Customizer panel or section

You can easily remove a Customizer panel or section with some custom code.

First, some WordPress terminology. There are Customizer panels and Customizer sections.  The difference is that a panel is a tab that contains subtabs, whereas a section is a tab with no subtabs. For example, the General tab is a panel because it contains subtabs, as shown in the following screenshot.

See the table in the next section to find out which tabs are panels and which are sections.

Here's the code you can use as a template. It creates a function and ties it into the appropriate WordPress action hook. In this case it removes the Presets section from the Customizer. 

function my_customize_register() {     
global $wp_customize;
$wp_customize->remove_section( 'fl-presets' );  //Modify this line as needed  
} 

add_action( 'customize_register', 'my_customize_register', 11 );

The code requires one or two modifications to remove the panel or section you want:

  • To remove a panel instead of a section, use remove_panel instead of remove_section.
  • Change the ID of the panel or section, following the table in the next section.

Add the code to your child theme's functions.php file.

Customizer type and ID reference

In order to use the code example above, you need to know if the Customizer tab is a panel or a section and its ID.  We've prepared a table to make this easier.

Title Panel or Section ID
Presets section fl-presets
General

Layout
Background
Accent Color
Headings
Text

panel

section 
section 
section 
section 
section 
fl-general

fl-layout 
fl-body-bg 
fl-accent-color 
fl-heading-font
fl-body-text
Header

Top Bar Layout
Top Bar Style
Header Layout
Header Style
Header Logo
Nav Layout
Nav Style

panel

section 
section 
section 
section 
section 
section 
section
fl-header

fl-topbar-layout
fl-topbar-style
fl-header-layout
fl-header-style
fl-header-logo
fl-nav-layout
fl-nav-style
Content

Content Background 
Blog Layout
Archive Layout
Post Layout
WooCommerce Layout
Lightbox

panel

section 
section 
section 
section 
section 
section
fl-content

fl-content-bg
fl-content-blog
fl-content-archives
fl-content-posts
fl-content-woo
fl-lightbox-layout
Footer

Footer Widgets Layout
Footer Widgets Style
Footer Layout
Footer Style
Footer Parallax

panel

section  
section  
section  
section  
section  

fl-footer

fl-footer-widgets-layout
fl-footer-widgets-style
fl-footer-layout
fl-footer-style
fl-footer-effect
Widgets
( This is a WordPress default
customizer panel )
panel
widgets
Code

CSS Code
JavaScript Code
Head Code
Header Code
Footer Code

panel

section  
section  
section  
section  
section  

fl-code

fl-css-code-section
fl-js-code-section
fl-head-code-section
fl-header-code-section
fl-footer-code-section
Settings

Social Links
Site Identity
(   This is a WordPress default
customizer section  )

Static Front Page 

This is a WordPress default
customizer section
 )

panel

section  
section  

   

section     

fl-settings

fl-social-links
title_tagline

   

static_front_page
Menus    
(  This is a WordPress default
customizer panel 
 )
panel nav_menus
Additional CSS
This is a WordPress default
customizer section
 )
section custom_css
Import/Export
This is a WordPress default
customizer section
 )
section fl-export-import