add_setting( 'pliska_gradient_color_one', array( 'default' => '#1997d2', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'pliska_gradient_color_one', array( 'label' => esc_html__( 'Header Image Gradient Color One', 'pliska' ), 'section' => 'colors', 'description' => esc_html__( 'To change header image gradient direction, density or completely remove it, go to "Header Options" section.', 'pliska' ), ) ) ); $wp_customize->add_setting( 'pliska_gradient_color_two', array( 'default' => '#000', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'pliska_gradient_color_two', array( 'label' => esc_html__( 'Header Image Gradient Color Two', 'pliska' ), 'section' => 'colors', ) ) ); // Menu Text Color $wp_customize->add_setting( 'nav_top_menu_text_color', array( 'default' => '#666', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'nav_top_menu_text_color', array( 'label' => esc_html__( 'Header Menu Text Color', 'pliska' ), 'section' => 'colors', 'description' => esc_html__( 'The menu text color when you scroll down the page. To change the menu behavior (sticky, fixed or static menu), go to "Header Options" section.', 'pliska' ), ) ) ); // Sub-menu Text Color $wp_customize->add_setting( 'nav_text_color', array( 'default' => '#fff', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'nav_text_color', array( 'label' => esc_html__( 'Sub-menu Text Color', 'pliska' ), 'section' => 'colors', ) ) ); // Sub Menu Background $wp_customize->add_setting( 'nav_color', array( 'default' => '#066664', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'nav_color', array( 'label' => __( 'Sub-menu Background Color', 'pliska' ), 'section' => 'colors', 'type' => 'color', ) ) ); // Mobile Menu Background $wp_customize->add_setting( 'mobile_menu_background', array( 'default' => '#066664', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'mobile_menu_background', array( 'label' => __( 'Mobile Menu Background Color', 'pliska' ), 'section' => 'colors', 'type' => 'color', ) ) ); // Headings Text Color $wp_customize->add_setting( 'headings_text_color', array( 'default' => '#404040', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'headings_text_color', array( 'label' => esc_html__( 'Headings Text Color', 'pliska' ), 'section' => 'colors', ) ) ); // Body Text Color $wp_customize->add_setting( 'body_text_color', array( 'default' => '#404040', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'body_text_color', array( 'label' => esc_html__( 'Body Text Color', 'pliska' ), 'section' => 'colors', ) ) ); $wp_customize->add_setting( 'links_text_color', array( 'default' => '#128284', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'links_text_color', array( 'label' => esc_html__( 'Links Text Color', 'pliska' ), 'section' => 'colors', ) ) ); $wp_customize->add_setting( 'links_hover_color', array( 'default' => '#066664', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'links_hover_color', array( 'label' => esc_html__( 'Links Hover Color', 'pliska' ), 'section' => 'colors', ) ) ); $wp_customize->add_setting( 'primary_accent_color', array( 'default' => '#0b8276', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'primary_accent_color', array( 'label' => esc_html__( 'Primary Accent Color', 'pliska' ), 'section' => 'colors', ) ) ); $wp_customize->add_setting( 'secondary_accent_color', array( 'default' => '#fbc02d', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'secondary_accent_color', array( 'label' => esc_html__( 'Secondary Accent Color', 'pliska' ), 'section' => 'colors', ) ) ); } add_action( 'customize_register', 'pliska_customize_colors', 10 ); function pliska_customize_colors_css() { $top_menu_text_color = get_theme_mod( 'nav_top_menu_text_color', '#666' ); $submenu_bgr_color = get_theme_mod( 'nav_color', '#066664' ); $submenu_text_color = get_theme_mod( 'nav_text_color', '#fff' ); $body_text_color = get_theme_mod( 'body_text_color', '#404040' ); $headings_text_color = get_theme_mod( 'headings_text_color', '#404040' ); $links_text_color = get_theme_mod( 'links_text_color', '#128284' ); $links_hover_color = get_theme_mod( 'links_hover_color', '#066664' ); $mobile_bgr_menu = get_theme_mod( 'mobile_menu_background', '#066664' ); $primary_accent_color = get_theme_mod( 'primary_accent_color', '#0b8276' ); $secondary_accent_color = get_theme_mod( 'secondary_accent_color', '#fbc02d' ); ?>