remove_control('header_textcolor'); //Theme color class WP_color_Customize_Control extends WP_Customize_Control { public $type = 'new_menu'; function render_content() { echo '

Light & Dark Predefined Colors Setting

'; $name = '_customize-color-radio-' . $this->id; foreach($this->choices as $key => $value ) { ?> add_section( 'theme_style' , array( 'title' => __('Theme style setting','bluestreet'), 'priority' => 0, ) ); //Theme Color Scheme $wp_customize->add_setting( 'wallstreet_pro_options[webriti_stylesheet]', array( 'default' => 'default.css', 'capability' => 'edit_theme_options', 'type' => 'option', 'sanitize_callback' => 'sanitize_text_field', )); $wp_customize->add_control(new WP_color_Customize_Control($wp_customize,'wallstreet_pro_options[webriti_stylesheet]', array( 'label' => __('Predefined colors','bluestreet'), 'section' => 'theme_style', 'type' => 'radio', 'choices' => array( 'default.css'=>'dark.png', 'light.css'=>'light.png', ) ))); } add_action( 'customize_register', 'bluestreet_theme_style_customizer' );