get_setting( 'blogname' )->transport = 'postMessage'; $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; $wp_customize->get_setting( 'header_textcolor' )->transport = 'postMessage'; if ( isset( $wp_customize->selective_refresh ) ) { $wp_customize->selective_refresh->add_partial( 'blogname', array( 'selector' => '.site-title a', 'render_callback' => 'blog_and_blog_customize_partial_blogname', ) ); $wp_customize->selective_refresh->add_partial( 'blogdescription', array( 'selector' => '.site-description', 'render_callback' => 'blog_and_blog_customize_partial_blogdescription', ) ); } $wp_customize->add_setting( 'website_background_color', array( 'default' => '#fff', 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'postMessage', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'website_background_color', array( 'label' => __( 'Background Color', 'blog_and_blog' ), 'section' => 'colors', 'priority' => 1, 'settings' => 'website_background_color', ) ) ); $wp_customize->add_setting( 'header_background_color', array( 'default' => '#fff', 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'postMessage', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'header_background_color', array( 'label' => __( 'Header Background Color', 'blog_and_blog' ), 'section' => 'colors', 'priority' => 1, 'settings' => 'header_background_color', ) ) ); } add_action( 'customize_register', 'blog_and_blog_customize_register' ); if(! function_exists('blog_and_blog_customizer_css_final_output' ) ): function blog_and_blog_customizer_css_final_output(){ ?>