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' => 'lifestylepress_customize_partial_blogname', ) ); $wp_customize->selective_refresh->add_partial( 'blogdescription', array( 'selector' => '.site-description', 'render_callback' => 'lifestylepress_customize_partial_blogdescription', ) ); } $wp_customize->add_section( 'background_color', array( 'title' => __('Background Color','lifestylepress'), 'priority' => 1, 'capability' => 'edit_theme_options', ) ); $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', 'lifestylepress' ), 'section' => 'background_color', 'priority' => 1, 'settings' => 'website_background_color', ) ) ); $wp_customize->add_setting( 'sidebar_headline_color', array( 'default' => '#000', 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'postMessage', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'sidebar_headline_color', array( 'label' => __( 'Sidebar Headline Color', 'lifestylepress' ), 'section' => 'colors', 'priority' => 1, 'settings' => 'sidebar_headline_color', ) ) ); $wp_customize->add_setting( 'sidebar_link_color', array( 'default' => '#000', 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'postMessage', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'sidebar_link_color', array( 'label' => __( 'Sidebar Link Color', 'lifestylepress' ), 'section' => 'colors', 'priority' => 1, 'settings' => 'sidebar_link_color', ) ) ); $wp_customize->add_setting( 'sidebar_text_color', array( 'default' => '#333', 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'postMessage', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'sidebar_text_color', array( 'label' => __( 'Sidebar Text Color', 'lifestylepress' ), 'section' => 'colors', 'priority' => 1, 'settings' => 'sidebar_text_color', ) ) ); $wp_customize->add_setting( 'sidebar_border_color', array( 'default' => '#000', 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'postMessage', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'sidebar_border_color', array( 'label' => __( 'Sidebar Border Color', 'lifestylepress' ), 'section' => 'colors', 'priority' => 1, 'settings' => 'sidebar_border_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', 'lifestylepress' ), 'section' => 'colors', 'priority' => 1, 'settings' => 'header_background_color', ) ) ); } add_action( 'customize_register', 'lifestylepress_customize_register' ); if(! function_exists('lifestylepress_customizer_css_final_output' ) ): function lifestylepress_customizer_css_final_output(){ ?>