add_setting('ssdma_colors_links', array( 'default' => '#00AAD5', 'sanitize_callback' => 'sanitize_hex_color', 'capability' => 'edit_theme_options', 'type' => 'option', )); $wp_customize->add_control( new WP_Customize_Color_Control($wp_customize, 'ssdma_colors_links', array( 'label' => __('Color (Search, Catalog, Links, Tabs, Price)', 'ssdma'), 'section' => 'colors', 'settings' => 'ssdma_colors_links', ))); // color link, button, price hover $wp_customize->add_setting('ssdma_colors_links_hover', array( 'default' => '#59bdd6', 'sanitize_callback' => 'sanitize_hex_color', 'capability' => 'edit_theme_options', 'type' => 'option', )); $wp_customize->add_control( new WP_Customize_Color_Control($wp_customize, 'ssdma_colors_links_hover', array( 'label' => __('Color (Search, Catalog, Links, Tabs, Price) Hover', 'ssdma'), 'section' => 'colors', 'settings' => 'ssdma_colors_links_hover', ))); // header text button $wp_customize->add_setting('ssdma_colors_htb', array( 'default' => '#FFCA00', 'sanitize_callback' => 'sanitize_hex_color', 'capability' => 'edit_theme_options', 'type' => 'option', )); $wp_customize->add_control( new WP_Customize_Color_Control($wp_customize, 'ssdma_colors_htb', array( 'label' => __('Header text button', 'ssdma'), 'section' => 'colors', 'settings' => 'ssdma_colors_htb', ))); // header text button hover $wp_customize->add_setting('ssdma_colors_htb_h', array( 'default' => '#D1A200', 'sanitize_callback' => 'sanitize_hex_color', 'capability' => 'edit_theme_options', 'type' => 'option', )); $wp_customize->add_control( new WP_Customize_Color_Control($wp_customize, 'ssdma_colors_htb_h', array( 'label' => __('Header text button(hover)', 'ssdma'), 'section' => 'colors', 'settings' => 'ssdma_colors_htb_h', ))); // header line $wp_customize->add_setting('ssdma_colors_h_line', array( 'default' => '#00AAD5', 'sanitize_callback' => 'sanitize_hex_color', 'capability' => 'edit_theme_options', 'type' => 'option', )); $wp_customize->add_control( new WP_Customize_Color_Control($wp_customize, 'ssdma_colors_h_line', array( 'label' => __('Header line', 'ssdma'), 'section' => 'colors', 'settings' => 'ssdma_colors_h_line', ))); // header text button 2 $wp_customize->add_setting('ssdma_colors_htb2', array( 'default' => '#FFCA00', 'sanitize_callback' => 'sanitize_hex_color', 'capability' => 'edit_theme_options', 'type' => 'option', )); $wp_customize->add_control( new WP_Customize_Color_Control($wp_customize, 'ssdma_colors_htb2', array( 'label' => __('Header(slider) text button 2', 'ssdma'), 'section' => 'colors', 'settings' => 'ssdma_colors_htb2', ))); // header text button hover 2 $wp_customize->add_setting('ssdma_colors_htb_h2', array( 'default' => '#D1A200', 'sanitize_callback' => 'sanitize_hex_color', 'capability' => 'edit_theme_options', 'type' => 'option', )); $wp_customize->add_control( new WP_Customize_Color_Control($wp_customize, 'ssdma_colors_htb_h2', array( 'label' => __('Header(slider) text button 2(hover)', 'ssdma'), 'section' => 'colors', 'settings' => 'ssdma_colors_htb_h2', ))); // header text button 3 $wp_customize->add_setting('ssdma_colors_htb3', array( 'default' => '#FFCA00', 'sanitize_callback' => 'sanitize_hex_color', 'capability' => 'edit_theme_options', 'type' => 'option', )); $wp_customize->add_control( new WP_Customize_Color_Control($wp_customize, 'ssdma_colors_htb3', array( 'label' => __('Header(slider) text button 3', 'ssdma'), 'section' => 'colors', 'settings' => 'ssdma_colors_htb3', ))); // header text button hover 3 $wp_customize->add_setting('ssdma_colors_htb_h3', array( 'default' => '#D1A200', 'sanitize_callback' => 'sanitize_hex_color', 'capability' => 'edit_theme_options', 'type' => 'option', )); $wp_customize->add_control( new WP_Customize_Color_Control($wp_customize, 'ssdma_colors_htb_h3', array( 'label' => __('Header(slider) text button 3(hover)', 'ssdma'), 'section' => 'colors', 'settings' => 'ssdma_colors_htb_h3', ))); } add_action('customize_register', 'ssdma_customize_register_colors');