add_setting( 'site_text_color' , array( 'default' => '#000000', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color', ) ); // Blog posts background color $wp_customize->add_setting( 'blogpost_bgcolor' , array( 'default' => '#f3eddd', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color', ) ); // Sidebar background color $wp_customize->add_setting( 'sidebar_bgcolor' , array( 'default' => '#D2E4D8', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color', ) ); // Main footer and post footer background color $wp_customize->add_setting( 'footer_bgcolor' , array( 'default' => '#CB7E54', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color', ) ); // Buttons background color $wp_customize->add_setting( 'button_bgcolor' , array( 'default' => '#344F59', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color', ) ); // Buttons text color $wp_customize->add_setting( 'button_color' , array( 'default' => '#ffffff', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color', ) ); // Link color $wp_customize->add_setting( 'link_color' , array( 'default' => '#344F59', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color', ) ); // Control for site text color $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'txt_color', array( 'label' => __( 'Site Text Color', 'harmonia' ), 'section' => 'colors', 'settings' => 'site_text_color', ) ) ); // Control for blog posts background color $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'blogpost_color', array( 'label' => esc_html__( 'Posts Background Color', 'harmonia' ), 'section' => 'colors', 'settings' => 'blogpost_bgcolor', ) ) ); // Control for sidebar background color $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'aside_bgcolor', array( 'label' => esc_html__( 'Sidebar Background Color', 'harmonia' ), 'section' => 'colors', 'settings' => 'sidebar_bgcolor', ) ) ); // Control for Main footer and post footer background color $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'foot_bgcolor', array( 'label' => esc_html__( 'Footer Background Color', 'harmonia' ), 'section' => 'colors', 'settings' => 'footer_bgcolor', ) ) ); // Control for buttons background color $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'btn_bgcolor', array( 'label' => esc_html__( 'Buttons Background Color', 'harmonia' ), 'section' => 'colors', 'settings' => 'button_bgcolor', ) ) ); // Control for buttons text color $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'btn_color', array( 'label' => __( 'Buttons Text Color', 'harmonia' ), 'section' => 'colors', 'settings' => 'button_color', ) ) ); // Control for link color $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'lnk_color', array( 'label' => esc_html__( 'Link Color', 'harmonia' ), 'section' => 'colors', 'settings' => 'link_color', ) ) ); } add_action( 'customize_register', 'harmonia_theme_customizer' ); function harmonia_customize_css() { ?>