add_section( 'products_bgcolor', array( 'title' => __('Products Background Color','stoready'), 'description' => __('This is a child theme only feature','stoready'), 'priority' => 1, 'capability' => 'edit_theme_options', ) ); $wp_customize->add_setting( 'products_bg_select', array( 'default' => '#fff', 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'postMessage', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'products_bg_select', array( 'label' => __( 'Background Color', 'stoready' ), 'section' => 'products_bgcolor', 'priority' => 1, 'settings' => 'products_bg_select', ) ) ); $wp_customize->add_section( 'readmore_button', array( 'title' => __('Read More Button','stoready'), 'priority' => 1, 'description' => __('This is a child theme only feature','stoready'), 'capability' => 'edit_theme_options', ) ); $wp_customize->add_setting( 'readmore_button_text', array( 'default' => '#fff', 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'postMessage', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'readmore_button_text', array( 'label' => __( 'Text Color', 'stoready' ), 'section' => 'readmore_button', 'priority' => 1, 'settings' => 'readmore_button_text', ) ) ); $wp_customize->add_setting( 'readmore_button_background', array( 'default' => '#f95b41', 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'postMessage', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'readmore_button_background', array( 'label' => __( 'Background Color', 'stoready' ), 'section' => 'readmore_button', 'priority' => 1, 'settings' => 'readmore_button_background', ) ) ); } add_action( 'customize_register', 'stoready_customize_register' ); if(! function_exists('stoready_customize_register_output' ) ): function stoready_customize_register_output(){ ?>