get_setting( 'blogname' )->transport = 'postMessage'; $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; $wp_customize->get_setting( 'header_textcolor' )->transport = 'postMessage'; } add_action( 'customize_register', 'agel_customize_register' ); function agel_customizer_addition( $wp_customize ) { $wp_customize->add_panel( 'agel_default', array( 'title' => __('Default Setting','agel-theme'), 'priority' => 1, ) ); $wp_customize->get_section( 'title_tagline' )->panel = 'agel_default'; $wp_customize->get_section( 'colors' )->panel = 'agel_default'; $wp_customize->get_section( 'background_image' )->panel = 'agel_default'; $wp_customize->get_section( 'static_front_page' )->panel = 'agel_default'; $wp_customize->get_section( 'custom_css' )->panel = 'agel_default'; } add_action( 'customize_register', 'agel_customizer_addition' ); //Render the site title for the selective refresh partial. function agel_customize_partial_blogname() { bloginfo( 'name' ); } //Render the site tagline for the selective refresh partial. function agel_customize_partial_blogdescription() { bloginfo( 'description' ); } //Binds JS handlers to make Theme Customizer preview reload changes asynchronously. function agel_customize_preview_js() { wp_enqueue_script( 'agel-customizer', get_template_directory_uri() . '/js/customizer.js', array( 'customize-preview' ), '20151215', true ); } add_action( 'customize_preview_init', 'agel_customize_preview_js' );