add_section( 'postpage_settings', array( 'title' => __('Posts/Page Settings','superb-education'), 'priority' => 1, 'capability' => 'edit_theme_options', ) ); $wp_customize->add_setting( 'postpage_bg_color', array( 'default' => '#fff', 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'postMessage', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'postpage_bg_color', array( 'label' => __( 'Background Color', 'superb-education' ), 'section' => 'postpage_settings', 'priority' => 1, 'settings' => 'postpage_bg_color', ) ) ); $wp_customize->add_setting( 'postpage_headline_color', array( 'default' => '#000', 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'postMessage', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'postpage_headline_color', array( 'label' => __( 'Headline Color', 'superb-education' ), 'section' => 'postpage_settings', 'priority' => 1, 'settings' => 'postpage_headline_color', ) ) ); $wp_customize->add_setting( 'postpage_byline_color', array( 'default' => '#afafaf', 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'postMessage', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'postpage_byline_color', array( 'label' => __( 'Byline Color', 'superb-education' ), 'section' => 'postpage_settings', 'priority' => 1, 'settings' => 'postpage_byline_color', ) ) ); $wp_customize->add_setting( 'postpage_text_color', array( 'default' => '#949494', 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'postMessage', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'postpage_text_color', array( 'label' => __( 'Text Color', 'superb-education' ), 'section' => 'postpage_settings', 'priority' => 1, 'settings' => 'postpage_text_color', ) ) ); $wp_customize->add_setting( 'postpage_link_color', array( 'default' => '#000', 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'postMessage', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'postpage_link_color', array( 'label' => __( 'Link Color', 'superb-education' ), 'section' => 'postpage_settings', 'priority' => 1, 'settings' => 'postpage_link_color', ) ) ); $wp_customize->add_setting( 'postpage_buttonbg_color', array( 'default' => '#000', 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'postMessage', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'postpage_buttonbg_color', array( 'label' => __( 'Button Background Color', 'superb-education' ), 'section' => 'postpage_settings', 'priority' => 1, 'settings' => 'postpage_buttonbg_color', ) ) ); $wp_customize->add_setting( 'postpage_buttontext_color', array( 'default' => '#fff', 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'postMessage', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'postpage_buttontext_color', array( 'label' => __( 'Button Text Color', 'superb-education' ), 'section' => 'postpage_settings', 'priority' => 1, 'settings' => 'postpage_buttontext_color', ) ) ); $wp_customize->add_setting( 'postpage_border_color', array( 'default' => '#000', 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'postMessage', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'postpage_border_color', array( 'label' => __( 'Border Color', 'superb-education' ), 'section' => 'postpage_settings', 'priority' => 1, 'settings' => 'postpage_border_color', ) ) ); } add_action( 'customize_register', 'superb_education_customize_register', 999 ); if(! function_exists('superb_education_customizer_css_final_output' ) ): function superb_education_customizer_css_final_output(){ ?>