How do I remove a customiser option from a parent theme in a child theme?

From the documentation: To add, remove, or modify any Customizer object, and to access the Customizer Manager, use the customize_register hook: function themeslug_customize_register( $wp_customize ) { // Do stuff with $wp_customize, the WP_Customize_Manager object. } add_action( ‘customize_register’, ‘themeslug_customize_register’ ); The Customizer Manager provides add_, get_, and remove_ methods for each Customizer object type; each works … Read more

Add post type titles in customizer dropdown list

Ok I found it, here is the answer for next ones who are looking for the same thing: $cf7forms_list = array(); $args = array(‘post_type’ => ‘wpcf7_contact_form’); $cf7forms = get_posts( $args ); foreach($cf7forms as $cf7form) { $cf7forms_list[$cf7form->post_title] = $cf7form->post_title; } $wp_customize->add_setting( ‘contact_list_section’, array( ‘transport’ => ‘postMessage’ )); $wp_customize->add_control( ‘contact_list_section’, array( ‘label’ => esc_html__( ‘Contact form’, ‘mytheme’ … Read more

How to enqueue javascript for WP Customize options sidebar?

Use the action customize_controls_enqueue_scripts: add_action( ‘customize_controls_enqueue_scripts’, ‘enqueue_customizer_scripts’ ); function enqueue_customizer_scripts() { wp_enqueue_script(); // fill in the details here } To add inline scripts in the header, use the action customize_controls_print_scripts. See wp-admin/customize.php for details.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)