Assuming that the parent theme is running the above code at customize_register
priority 10, you just have to add another customize_register
action callback that runs afterward, like at 20. However, you cannot move a control to a panel. Controls can only reside inside of sections. To move a control to another section you can use:
add_action( 'customize_register', function ( WP_Customize_Manager $wp_customize ) {
$wp_customize->remove_section( 'font_selection' );
$wp_customize->add_section( 'some_other_section', array(
'title' => __( 'Some other section', 'theme' ),
) );
$body_font_family_control = $wp_customize->get_control( 'body_font_family' );
if ( $body_font_family_control ) {
$body_font_family_control->section = 'some_other_section';
}
}, 20 );
Related Posts:
- New WP_Customize API – how does it work under the hood?
- Disable Visible Edit Shortcuts in the Customizer
- How to Add Customizer Setting in Child Theme
- customize_register with Multiple controls/settings – how to get values?
- Manipulating post meta in the customizer
- Widgets not working in Customizr but working in Appearance
- In the new Theme Customizer API, how to send a value from the front back to the admin panel?
- get_theme_mod(); returns nothing
- How to get input_attrs in the sanitize function?
- How to change in customizer the “site identity” tab required capabilities
- Customizer image control default value showing in customizer but not on frontend
- Customizer: How do you add HTML to control labels?
- Add new Control to Customizer to modify Headings (h1, h2, h3…) Color
- How to extend nav-menu-item-control data in Appearance > Customize?
- What will happen to the additional CSS when the theme is updated?
- Convert an theme options page to use in customize.php also?
- Add more then one site logo – custom-logo theme support
- Hide devices selection from customizer?
- Fatal error in wp-admin/customize.php after fresh install due to null $wp_customize
- Enabling Additional CSS / custom-css
- Can not sanitize select control in customize api
- Bind JS event to WordPress control customizer
- For a specific theme, how do I build a list of all the possible theme modification names?
- Save & Publish disabled for two dimensional array Customizer
- Allow guests to use WP Customizer but disable save button
- How do I remove a customiser option from a parent theme in a child theme?
- How to add css option to Header Image customizer?
- Trigger Customizer Publish (save) Action
- How to edit alternate inactive themes in “Appearance -> Customise” screen?
- Is it necessary to prefix theme_mod, section id and panel id in the customizer?
- Hide Customizer’s Widget Choices From The List
- theme customizer – can a single option pass multiple values?
- Remove Customizer Control Choices (Type: Radio Array) using Child Themes
- Dynamic Control in customiser
- Is it possible to rename a customizer control heading?
- Is it possible to add custom badges to product attributes conditionally, based on custom field?
- Will WordPress updates remove Gutenberg Additional Classes?
- Easily add custom HTML outside the main container?
- Customizer options limited to specific user roles?
- Can’t Customize WordPress Page
- WordPress Customizer: Check for value of CSS selector and replace it
- In wordpress customizer api adding div wrap to control
- Apply `the_content’ filter to theme customisation live preview
- retrieve theme custom settings
- Multiple Customizers
- Which IDE best for WordPress Development? [closed]
- Refresh Customize Section (not preview)
- Do i need to use PHP in customizer api?
- Where did I put this one line of css?
- Creative uses of WordPress [closed]
- Add button to TinyMCE bar without creating a plugin
- wp_nav_menu() custom container and container_id
- FireFox Inspector :: find CSS file related to
- Custom CSS for full post vs. excerpt (Content Options)
- Add field to posts (checkbox) that only one post can have
- Reproducing hierarchical list output from wp_list_categories(), using get_categories()
- How do I go straight to “Edit More Details” when clicking on an item in the media library?
- How can I add a button to quicktags-toolbar?
- Recommend an open source, template driven website builder UI that produces a working WordPress site [closed]
- Where to add one custom end point and its function?
- Private member page
- For custom templates, is it better to use `template_include` or `type_template`?
- How to pass external variables to the wp_new_user_notification_email filter?
- Dynamic title in WordPress homepage
- Control Content On Non-Blog Pages
- How to add custom control to a page?
- Navigation label for page in custom theme
- Auto login from custom registration form
- How to get Related Custom Posts?
- Background image not appearing
- custom upload directory only for plugin uploads
- Is it possible to change the structure of the HTML generated by the_content()? If yes, how? If not, is there a workaround?
- How to define custom links in WordPress
- Display specific Taxonomy Term from Custom Post Type
- Is it advisable to use `add_rewrite_rule()` to serve a custom page?
- Customizing the Widget content markup
- Garbage in uploads folder
- What is the best way to modify Admin Panel on WordPress?
- How to customize shipping region/states on WooCommerce
- Upload a web module (html and JS) to wordpress
- Customizer: get_preview_url() inside customize_save_after hook
- Pagination with custom field
- How to retain visual breadcrumbs w/ tricky URL structure? Custom post template?
- Mimicking admin panel menu from wordpress 3.0.1
- Adding overlay search to wordpress using add action/filter
- wordpress custom fields loop
- why won’t my custom css load with the enqueue method or any other method?
- Adding a drop-down (select tag) option under Menu Settings in WordPress Admin
- How to add rewrite rule for product compare page?
- Custom Admin Section
- Local and live synchronized dev and production environment [closed]
- issue with saving custom metaboxes fields
- Getting a jQuery library to work in WordPress & Avada
- DOM reference to TinyMCE editor element (button)
- Allow arbitrary text after page URL
- Possible to make a site like urban dictionary using WP?
- Making custom pages (with an example to explain the goal)
- Use wp_login_form function to login with a custom user table?
- How to hide post metadata from homepage and show only in post page?
- Some data of one custom user profile is erased when I update another custom user profile