You can move around sections in the customizer simply by accessing the datastructure and assign a different value to the panel. So supposing that your widget area, created in the usual way, is called wpse210938_area
and you want to move it to the panel wpse210938_panel
, you do this:
add_action( 'customize_register', 'wpse210938_move_widget_area' );
function wpse210938_move_widget_area () {
global $wp_customize;
$wp_customize->get_section ('sidebar-widgets-wpse210938_area')->panel="wpse210938_panel";
}
Only disadvantage is that, if you have debug mode on, you will get a php warning “Creating default object from empty value”, presumably because WP loads the widget sections last, so when you are moving them, they are still empty.
Related Posts:
- How i can get widgets areas working in customizer?
- “Add A Widget” button in the Customizer
- How To extend WP_Customize_Control
- How do I remove a pre-existing customizer setting?
- Can I create my own “Recent Posts” widget or customize the existing one?
- How to store widget fields data as an array?
- Adding a div to wrap widget content after the widget title
- Theme customizer – settings order
- What is the difference between wp_register_sidebar_widget and register_widget?
- How to enqueue script if widget is displayed on page?
- Custom Image section in Customizer
- 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?
- Call dynamic_sidebar but include/exclude named widgets?
- Add a dropdown to theme customizer
- Should I use set_transient or update_option?
- HowTo: Add Class to Sidebar Widget List-Items
- Theme Customizer : how to create multiple-level panel
- Allow Shortcode in Theme Customizer
- Theme Customizer – Nested Sections?
- Customizer Active Callback not working
- Can I create customizer setting that can handle plugin shortcode?
- Editing the custom background CSS
- register_sidebar ignores ‘id’ and ‘class’
- How wp_cache is supposed to work, and does it help with performance?
- How to execute conditional script when on new customize.php (Theme Customize) screen
- Is the theme customizer slowing down my site?
- Trigger Customizer saving process with Javascript only
- Adding customizer styles with wp_add_inline_style
- How to determine the current widget’s parent container (sidebar widget id)
- Adding widgets programatically: how to avoid collisions?
- Add class to before_widget for all widgets with a dropdown and a counter
- Enabling Widgets By Default in Custom Theme Development
- WordPress Customizer Typography: How to load just the unique Google Fonts?
- WordPress Customize — Move “menus” options / field to another section
- Can we add more than one control under a setting in WP theme customizer?
- Widgets panel not displaying in the Theme Customizer
- use add_action(‘wp_head’) in a widget for generating dynamic CSS styles
- Registering Sidebars and Sidebar Widgets. Sidebar Widgets Not Displaying
- File included into functions.php via require_once() won’t echo?
- Adding inline styles from a widget
- modify a output of a widget
- Context aware widgets. My work in progress
- Is it possible to display the admin bar while in the Theme Customizer?
- How to determine which sidebar the widget has been added to, via widget admin?
- How can I add an incremental class identifier to my sidebar widgets?
- How to Modify a Widgets UL and/or LI Classes
- How do I get a parent theme modification from a child theme?
- Should use widgets in this case?
- Changing the entire control choices using wp.customize with JavaScript
- Enabling Default Widgets in a Custom Theme
- How to Change CSS Variable value in Theme Customizer Live Preview
- how to create theme based widget that can be drop in sider bar or footer
- How to remove menus section from WordPress theme customizer
- How to add a text widget during theme activation
- Get background color for Live Preview with Theme Customization API?
- Adding WordPress colorpicker in widget settings
- How to add multiple custom widget areas
- Checking if there is an Image inserted – if not don’t display anything
- How do I display the “Archives” widget layout (sidebar) in WordPress by ‘year’ then by ‘months’?
- “Display Site Title and Tagline” checkbox not working?
- How to set page template on front using starter content?
- Default header image does not display
- WordPress Customizer Control with React
- Responsive Images – Generating multiple images from Theme Customizer control upload?
- Modify Javascript Configuration Options for Theme Customizer Colour Picker
- Is it a good idea to make whole theme widgetized?
- Modify the Additional CSS section (adding a disclaimer)
- How to change the customizer´s sidebar width?
- Add tinymce to widget textareas
- How to determine which registered sidebar area a custom widget is loaded into
- Widgets with groups / sub widgets? Widget in a widget?
- wordpress custom theme import and export options for sample data [closed]
- How to hook CSS file according to theme selection in the customizer section
- 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
- How to determine if post has widget content?
- after_setup_theme, Global Variable and Theme Customizer
- Custom Script Section Only Echoes Text
- How to disable automatic colors in the Twenty Twenty theme?
- WordPress not registering Theme Customization Section
- searchform.php override not working
- How can i add edit shortcut icon in wordpress customizer without using selective refresh?
- Customizer: widget-synced triggers twice
- Add new panel inside parent panel in WP Customize?
- WP Customize refresh problem
- Input ordering in wordpress theme customizer
- Unable to pass variable on theme cusomizer add_settings()
- Widget items disappearing
- How can i initialize a widgetized sidebar (with widgets)
- How do you force a sidebar widget to have a container div around all child widgets?
- Add widgets to available widgets section without changing the theme?
- How to add field customizable by the theme editor to your theme?
- Get a setting value conditionally in the Customizer api
- How to add new args data in $wp_customize->add_setting?
- WP_Customize_Color_Control omitting # symbol
- Hide header texts (Title & Tagline) in custom-header.php
- get_option in header.php not returning value from customizer
- Custom Widget options in theme