add_panel( 'business_champ_colors_panel', array( 'priority' => 20, 'capability' => 'edit_theme_options', 'theme_supports' => '', 'title' => __('Color Options', 'business-champ'), ) ); // body color $wp_customize->add_setting( 'body_text_color', array( 'default' => '#292b2c', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'body_text_color', array( 'label' => __('Body text', 'business-champ'), 'section' => 'colors', 'settings' => 'body_text_color', 'priority' => 3 ) ) ); // header color $wp_customize->add_section( 'colors_header', array( 'title' => __('Header', 'business-champ'), 'priority' => 12, 'panel' => 'business_champ_colors_panel', ) ); // menu background color $wp_customize->add_setting( 'menu_bg_color', array( 'default' => '#45deb0', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'menu_bg_color', array( 'label' => __('Menu background', 'business-champ'), 'section' => 'colors_header', 'priority' => 12 ) ) ); // top level menu color $wp_customize->add_setting( 'top_items_color', array( 'default' => '#000', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'top_items_color', array( 'label' => __('Top level menu items', 'business-champ'), 'section' => 'colors_header', 'priority' => 13 ) ) ); // top level menu hover color $wp_customize->add_setting( 'menu_items_hover', array( 'default' => '#fff', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'menu_items_hover', array( 'label' => __('Menu items hover', 'business-champ'), 'section' => 'colors_header', 'priority' => 15 ) ) ); // sub menu hover color $wp_customize->add_setting( 'submenu_items_color', array( 'default' => '#ffffff', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'submenu_items_color', array( 'label' => __('Sub-menu items', 'business-champ'), 'section' => 'colors_header', 'priority' => 16 ) ) ); // submenu background color $wp_customize->add_setting( 'submenu_background', array( 'default' => '#45deb0', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'submenu_background', array( 'label' => __('Sub-menu background', 'business-champ'), 'section' => 'colors_header', 'priority' => 17 ) ) ); // Mobile menu icon color $wp_customize->add_setting( 'mobile_menu_color', array( 'default' => '#ffffff', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'mobile_menu_color', array( 'label' => __('Mobile menu button', 'business-champ'), 'section' => 'colors_header', 'priority' => 17 ) ) ); // slider text color $wp_customize->add_setting( 'slider_text', array( 'default' => '#ffffff', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'slider_text', array( 'label' => __('Banner slider text', 'business-champ'), 'section' => 'colors_header', 'priority' => 18 ) ) ); // sidebar backgound color $wp_customize->add_setting( 'sidebar_background', array( 'default' => '#ffffff', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'sidebar_background', array( 'label' => __('Sidebar background', 'business-champ'), 'section' => 'colors_sidebar', 'priority' => 20 ) ) ); // sidebar color $wp_customize->add_section( 'colors_sidebar', array( 'title' => __('Sidebar', 'business-champ'), 'priority' => 13, 'panel' => 'business_champ_colors_panel', ) ); $wp_customize->add_setting( 'sidebar_color', array( 'default' => '#767676', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'sidebar_color', array( 'label' => __('Sidebar color', 'business-champ'), 'section' => 'colors_sidebar', 'priority' => 21 ) ) ); // footer section color $wp_customize->add_section( 'colors_footer', array( 'title' => __('Footer', 'business-champ'), 'priority' => 14, 'panel' => 'business_champ_colors_panel', ) ); //footer background $wp_customize->add_setting( 'footer_background', array( 'default' => '#1c1c1c', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'footer_background', array( 'label' => __('Footer background', 'business-champ'), 'section' => 'colors_footer', 'priority' => 24 ) ) ); //Footer color $wp_customize->add_setting( 'footer_color', array( 'default' => '#666666', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'footer_color', array( 'label' => __('Footer color', 'business-champ'), 'section' => 'colors_footer', 'priority' => 25 ) ) ); // copyright background color $wp_customize->add_setting( 'copyright_bg_color', array( 'default' => '#6b6b6b', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'copyright_bg_color', array( 'label' => __('Copyright background', 'business-champ'), 'section' => 'colors_footer', 'priority' => 25 ) ) ); // copyright color $wp_customize->add_setting( 'copyright_color', array( 'default' => '#efefef', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'copyright_color', array( 'label' => __('Copyright text color', 'business-champ'), 'section' => 'colors_footer', 'priority' => 25 ) ) );