add_setting('bshk_body_text', array('default' => '#6E6A6F', 'transport' => 'refresh','sanitize_callback' => 'sanitize_hex_color',) ); $wp_customize->add_setting('bshk_body_bg', array('default' => '#ffffff', 'transport' => 'refresh','sanitize_callback' => 'sanitize_hex_color',) ); $wp_customize->add_setting('bshk_links', array('default' => '#499F68', 'transport' => 'refresh','sanitize_callback' => 'sanitize_hex_color',) ); $wp_customize->add_setting('bshk_menu_header', array('default' => '#499F68', 'transport' => 'refresh','sanitize_callback' => 'sanitize_hex_color',) ); $wp_customize->add_setting('bshk_menu_text', array('default' => '#499F68', 'transport' => 'refresh','sanitize_callback' => 'sanitize_hex_color',) ); $wp_customize->add_setting('bshk_menu_header_title', array('default' => '#ffffff', 'transport' => 'refresh','sanitize_callback' => 'sanitize_hex_color',) ); $wp_customize->add_setting('bshk_text_highlight', array('default' => '#499F68', 'transport' => 'refresh','sanitize_callback' => 'sanitize_hex_color',) ); $wp_customize->add_setting('bshk_home_header', array('default' => '#499F68', 'transport' => 'refresh','sanitize_callback' => 'sanitize_hex_color',) ); $wp_customize->add_setting('bshk_home_head_text', array('default' => '#ffffff', 'transport' => 'refresh','sanitize_callback' => 'sanitize_hex_color',) ); $wp_customize->add_setting('bshk_warning', array('default' => '#F45B69', 'transport' => 'refresh','sanitize_callback' => 'sanitize_hex_color',) ); $wp_customize->add_setting('bshk_button', array('default' => '#499F68', 'transport' => 'refresh','sanitize_callback' => 'sanitize_hex_color',) ); $wp_customize->add_setting('bshk_button_text', array('default' => '#ffffff', 'transport' => 'refresh','sanitize_callback' => 'sanitize_hex_color',) ); $wp_customize->add_setting('bshk_info', array('default' => '#97CE8E', 'transport' => 'refresh','sanitize_callback' => 'sanitize_hex_color',) ); $wp_customize->add_setting('bshk_info_text', array('default' => '#ffffff', 'transport' => 'refresh','sanitize_callback' => 'sanitize_hex_color',) ); $wp_customize->add_setting('bshk_form', array('default' => '#f4f4f4', 'transport' => 'refresh','sanitize_callback' => 'sanitize_hex_color',) ); $wp_customize->add_panel( 'bshk_colors', array( 'priority' => 1, 'capability' => 'edit_theme_options', 'title' => __( 'Theme Colours', 'boshki-portfolio' ), 'description' => __( 'Theme Colours.', 'boshki-portfolio' ), ) ); $wp_customize->remove_section( 'colors' ); //$wp_customize->add_section( 'bshk_images', array('title' => __('Images', 'boshki-portfolio'), 'priority' => 2) ); $wp_customize->add_section( 'bshk_colors_general', array('title' => __('General', 'boshki-portfolio'), 'priority' => 1,'panel' => 'bshk_colors') ); $wp_customize->add_section( 'bshk_colors_head', array('title' => __('Home Page - Header', 'boshki-portfolio'), 'priority' => 2,'panel' => 'bshk_colors') ); $wp_customize->add_section( 'bshk_colors_menu', array('title' => __('Navigation Menu', 'boshki-portfolio'), 'priority' => 3,'panel' => 'bshk_colors') ); $wp_customize->add_section( 'bshk_colors_info', array('title' => __('Info panels', 'boshki-portfolio'), 'priority' => 4,'panel' => 'bshk_colors') ); //Default theme colours // //Background #ffffff //Body Text #6E6A6F //Links #499F68 //Menu Header #499F68 //Text Highlight #499F68 //Home Header #499F68 //Home Header Text #ffffff //Warning / Errors #F45B69 //Button #499F68 //Button text #ffffff //Info highlight #97CE8E //Info text #ffffff //Form Color #f4f4f4 $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'bshk_menu_header', array('label' => __('Menu color', 'boshki-portfolio'), 'section' => 'bshk_colors_menu', 'settings' => 'bshk_menu_header', 'priority' => 1 ))); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'bshk_menu_header_title', array('label' => __('Menu title', 'boshki-portfolio'), 'section' => 'bshk_colors_menu', 'settings' => 'bshk_menu_header_title', 'priority' => 2 ))); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'bshk_menu_text', array('label' => __('Menu text', 'boshki-portfolio'), 'section' => 'bshk_colors_menu', 'settings' => 'bshk_menu_text', 'priority' => 3 ))); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'bshk_form', array('label' => __('Background', 'boshki-portfolio'), 'section' => 'bshk_colors_menu', 'settings' => 'bshk_form', 'priority' => 4 ))); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'bshk_body_text', array('label' => __('Body text', 'boshki-portfolio'), 'section' => 'bshk_colors_general', 'settings' => 'bshk_body_text', 'priority' => 1 ))); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'bshk_links', array('label' => __('Hyperlinks', 'boshki-portfolio'), 'section' => 'bshk_colors_general', 'settings' => 'bshk_links', 'priority' => 2 ))); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'bshk_text_highlight', array('label' => __('Section Titles', 'boshki-portfolio'), 'section' => 'bshk_colors_general', 'settings' => 'bshk_text_highlight', 'priority' => 3 ))); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'bshk_warning', array('label' => __('Warning / notification', 'boshki-portfolio'), 'section' => 'bshk_colors_general', 'settings' => 'bshk_warning', 'priority' => 4 ))); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'bshk_button', array('label' => __('Button color', 'boshki-portfolio'), 'section' => 'bshk_colors_general', 'settings' => 'bshk_button', 'priority' => 5 ))); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'bshk_button_text', array('label' => __('Button text', 'boshki-portfolio'), 'section' => 'bshk_colors_general', 'settings' => 'bshk_button_text', 'priority' => 6 ))); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'bshk_body_bg', array('label' => __('Background', 'boshki-portfolio'), 'section' => 'bshk_colors_general', 'settings' => 'bshk_body_bg', 'priority' => 7 ))); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'bshk_info', array('label' => __('Highlight panel', 'boshki-portfolio'), 'section' => 'bshk_colors_info', 'settings' => 'bshk_info', 'priority' => 1 ))); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'bshk_info_text', array('label' => __('Highlight Panel text', 'boshki-portfolio'), 'section' => 'bshk_colors_info', 'settings' => 'bshk_info_text', 'priority' => 2 ))); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'bshk_home_header', array('label' => __('Background', 'boshki-portfolio'), 'section' => 'bshk_colors_head', 'settings' => 'bshk_home_header', 'priority' => 1 ))); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'bshk_home_head_text', array('label' => __('Text', 'boshki-portfolio'), 'section' => 'bshk_colors_head', 'settings' => 'bshk_home_head_text', 'priority' => 2 ))); } add_action( 'customize_register', 'bshk_customize_register' ); function bshk_customize_css() { ?>