The customizer is divided into panels, then sections, then controls. You cannot move a panel inside another panel. However, you can move sections from one panel to another. In this case you can move the sections inside “Menus” to the “Header panel” like this:
$wp_customize->get_section ('AAA')->panel="BBB";
Where AAA is the slug of the section you want to move and BBB is the slug of the panel where you want it to show up. You can find the slugs in the ID’s of the customizer html (use the browser’s inspector)
Once a panel is empty, you can remove it with:
$wp_customize->remove_pange ('CCC')
The slug for the default menu panel is nav_menu
.
Related Posts:
- How To extend WP_Customize_Control
- Get entered value of customiser field for live preview
- How to remove the Theme Customization Button from the dashboard and themes options page?
- Is it possible ( or advisable) to allow open access to the new theme customizer for potential clients?
- Add a dropdown to theme customizer
- Theme Customizer : how to create multiple-level panel
- Customizer Active Callback not working
- How to execute conditional script when on new customize.php (Theme Customize) screen
- Trigger Customizer saving process with Javascript only
- Adding customizer styles with wp_add_inline_style
- WordPress Customizer Typography: How to load just the unique Google Fonts?
- Can we add more than one control under a setting in WP theme customizer?
- Widgets panel not displaying in the Theme Customizer
- Is it possible to display the admin bar while in the Theme Customizer?
- How do I get a parent theme modification from a child theme?
- Changing the entire control choices using wp.customize with JavaScript
- How to Change CSS Variable value in Theme Customizer Live Preview
- Get background color for Live Preview with Theme Customization API?
- “Display Site Title and Tagline” checkbox not working?
- How to set page template on front using starter content?
- WordPress Customizer Control with React
- Modify Javascript Configuration Options for Theme Customizer Colour Picker
- How to change the customizer´s sidebar width?
- Theme Customizer – Choose where widget area appears, to let users organise widgets
- How i can get widgets areas working in customizer?
- How Can I Create a List of Values to Be Iterated Through via WordPress Customization API?
- Change setting name in Customizer and keep the data
- after_setup_theme, Global Variable and Theme Customizer
- How to disable automatic colors in the Twenty Twenty theme?
- WordPress not registering Theme Customization Section
- How can i add edit shortcut icon in wordpress customizer without using selective refresh?
- Add new panel inside parent panel in WP Customize?
- Input ordering in wordpress theme customizer
- Unable to pass variable on theme cusomizer add_settings()
- How to add field customizable by the theme editor to your theme?
- Get a setting value conditionally in the Customizer api
- WP_Customize_Color_Control omitting # symbol
- Using an if statement in the theme customizer page
- Theme-wide custom post template
- Edit footer via customizer
- How do i make a custom section’s setting display the default value in Customizer?
- How to add styles set by user in the customizer
- Disabling Customizer Selective Refresh shortcut icons for selected controls
- “Add A Widget” button in the Customizer
- Can I add multiple arrays within add_theme_support( ‘colors’ )?
- Q: How to pull data from custom table to populate zustomizer setting/control select options
- Dynamically generated wordpress customizer options?
- The ‘default’ attribute from $wp_customize->add_setting() method not in db?
- Override customizer values on a per-menu base
- How to modify default controls in WordPress theme customizer
- Is it possible to visually group items on the theme customizer?
- Customizer – loading settings/controls/sections/panels based on a id/page id
- Why in the static pages of my theme are showing these information?
- Is there a WordPress boolean for “theme_customizer_active()”?
- Can I make a Customizer dropdown-pages list include private pages?
- Doing context-aware previews in the WordPress Customizer
- Alignment Problem [closed]
- Adding a new setting using Kirki or WP customizer with an if statement
- Create something that can be added or removed in Customizer
- Theme logo metadata into template file
- Customizer: get_preview_url() inside customize_save_after hook
- WP Customazation API doesn’t save the default Value
- add shortcode support in customizer
- Twenty Twelve Author not displaying
- Customize Option Framework
- How to set a custom URL for the iframe in the customize page
- Related Post Category Filter
- Let user to upload multiple time
- How to enable admin to upload multiple images to support header carousel slider theme in WordPress?
- Customizer API Multi Sections in single Panel
- How to dynamically set a background image with the customizer without putting the css as an inline-style
- Default customizer colors aren’t displayed outside of the preview
- Image cropping isn’t working correctly when using Offload Media
- WordPress Custom Theme : Theme Builder vs ACF vs Gutenberg
- fetch all post from wp multisite network and sort all the post in descending order on the basis of “Created by ” term
- (Parent) theme Is Not Showing In Theme Selection Panel and Therefore Breaks Child Theme
- How to show some of category in wordpress
- Styling the website via the customizer – do the changes stay after theme update?
- Text View (Code View) in WordPress Customizer TinyMCE Editor
- Is there a way to create sections under “Colors” panel in the Theme Customizer?
- How to toggle WP Customizer Panel and Section with JavaScript API?
- Debugging slow WordPress Theme Customizer (Any option similar to Query Monitor)?
- Import settings from another theme
- Nav menus Fast previewing not working with wp_get_nav_menu_items!
- Customizer Image-Picker Preview Not Working
- Add multiple sections, settings and controls at once to the Customizer
- How to get url image page the right way?
- How to fix an issue with customizer live preview?
- Load get_page_templates into select menu
- Missing hashtag with theme customizer header color
- Customizer_register theme options not saving
- Editable screenshot.png in a custom theme developed
- Using Customizer value in an external PHP file inside a theme
- get_theme_mod not pulling css colors into header using wp_head
- Customizer API way function is_customize_preview() works only in main page?
- Theme customizer live preview JS- Trying to bind to an html image url without luck
- trying to figure out how to use more that one image upload in the same section in theme customizer
- How do I make it super customisable?
- How to make a multilingual wordpress site to be translated one-to-one without much effort and without using translate?
- My theme is full of error messages in the “Customize” screen, but nowhere else