add_setting( 'primary_color', array( 'default' => '#F2CAB3', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'primary_color', array( 'label' => __( 'Primary Color', 'blossom-floral-pro' ), 'description' => __( 'Primary color of the theme.', 'blossom-floral-pro' ), 'section' => 'colors', 'priority' => 5, 'active_callback' => 'blossom_floral_pro_colors_ac' ) ) ); /** Secondary Color*/ $wp_customize->add_setting( 'secondary_color', array( 'default' => '#01BFBF', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'secondary_color', array( 'label' => __( 'Secondary Color', 'blossom-floral-pro' ), 'description' => __( 'Secondary color of the theme.', 'blossom-floral-pro' ), 'section' => 'colors', 'priority' => 6, 'active_callback' => 'blossom_floral_pro_colors_ac' ) ) ); /** Floral Fashion*/ /** Primary Color*/ $wp_customize->add_setting( 'primary_color_ff', array( 'default' => '#fdbea9', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'primary_color_ff', array( 'label' => __( 'Primary Color', 'blossom-floral-pro' ), 'description' => __( 'Primary color of the theme.', 'blossom-floral-pro' ), 'section' => 'colors', 'active_callback' => 'blossom_floral_pro_colors_ac' ) ) ); /** secondary Color*/ $wp_customize->add_setting( 'secondary_color_ff', array( 'default' => '#ddbea9', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'secondary_color_ff', array( 'label' => __( 'Secondary Color', 'blossom-floral-pro' ), 'description' => __( 'Secondary color of the theme.', 'blossom-floral-pro' ), 'section' => 'colors', 'active_callback' => 'blossom_floral_pro_colors_ac' ) ) ); /** Elegant Travel*/ /** Primary Color*/ $wp_customize->add_setting( 'primary_color_et', array( 'default' => '#c9b09e', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'primary_color_et', array( 'label' => __( 'Primary Color', 'blossom-floral-pro' ), 'description' => __( 'Primary color of the theme.', 'blossom-floral-pro' ), 'section' => 'colors', 'active_callback' => 'blossom_floral_pro_colors_ac' ) ) ); /** secondary Color*/ $wp_customize->add_setting( 'secondary_color_et', array( 'default' => '#f7775e', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'secondary_color_et', array( 'label' => __( 'Secondary Color', 'blossom-floral-pro' ), 'description' => __( 'Secondary color of the theme.', 'blossom-floral-pro' ), 'section' => 'colors', 'active_callback' => 'blossom_floral_pro_colors_ac' ) ) ); /** Body Color*/ $wp_customize->add_setting( 'body_font_color', array( 'default' => '#001A1A', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'body_font_color', array( 'label' => __( 'Font Color', 'blossom-floral-pro' ), 'description' => __( 'Body font color of the theme.', 'blossom-floral-pro' ), 'section' => 'colors', 'priority' => 7, ) ) ); /** Background Color*/ $wp_customize->get_control( 'background_color' )->description = __( 'Background color of the theme.', 'blossom-floral-pro' ); } add_action( 'customize_register', 'blossom_floral_pro_customize_register_color' );