get_section( 'background_image' )->panel = 'color_panel'; $wp_customize->get_section( 'background_image' )->priority = '3'; $wp_customize->add_panel( 'color_panel', array( 'priority' => 14, 'capability' => 'edit_theme_options', 'theme_supports' => '', 'title' => esc_html__( 'Color Settings', 'abcblog' ), ) ); $wp_customize->add_section( 'global_color' , array( 'title' => esc_html__( 'Global Color', 'abcblog' ), 'priority' => 1, 'description' => esc_html__( 'Choose and set global color from here', 'abcblog' ), 'panel' => 'color_panel' ) ); $wp_customize->add_setting( 'theme_color' , array( 'sanitize_callback' => 'sanitize_hex_color', 'default' => '#0e9ca5', 'transport' => 'refresh', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'theme_color', array( 'label' => esc_html__( 'Theme Color', 'abcblog' ), 'description' => esc_html__( 'This is most used color on site', 'abcblog' ), 'section' => 'global_color', 'settings' => 'theme_color', 'priority' => 1, ) ) ); $wp_customize->add_setting( 'body_bg' , array( 'sanitize_callback' => 'sanitize_hex_color', 'default' => '#ededed', 'transport' => 'refresh', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'body_bg', array( 'label' => esc_html__( 'Background Color', 'abcblog' ), 'description' => esc_html__( 'Choose site background color', 'abcblog' ), 'section' => 'global_color', 'settings' => 'body_bg', 'priority' => 2, ) ) ); $wp_customize->add_setting( 'global_link_color' , array( 'sanitize_callback' => 'sanitize_hex_color', 'default' => '#08949d', 'transport' => 'refresh', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'global_link_color', array( 'label' => esc_html__( 'Contents Link Color', 'abcblog' ), 'section' => 'global_color', 'settings' => 'global_link_color', 'priority' => 3, ) ) ); $wp_customize->add_setting( 'body_font_color' , array( 'sanitize_callback' => 'sanitize_hex_color', 'default' => '#333333', 'transport' => 'refresh', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'body_font_color', array( 'label' => esc_html__( 'Body Font Color', 'abcblog' ), 'section' => 'global_color', 'settings' => 'body_font_color', 'priority' => 4, ) ) ); $wp_customize->add_setting( 'breadcrumb_bg_color' , array( 'sanitize_callback' => 'sanitize_hex_color', 'default' => '#dcdbdb', 'transport' => 'refresh', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'breadcrumb_bg_color', array( 'label' => esc_html__( 'Breadcrumb Background Color', 'abcblog' ), 'section' => 'global_color', 'settings' => 'breadcrumb_bg_color', 'priority' => 5, ) ) ); $wp_customize->add_section( 'header_color' , array( 'title' => esc_html__( 'Header Color', 'abcblog' ), 'priority' => 2, 'description' => 'Control site header color', 'panel' => 'color_panel' ) ); $wp_customize->add_setting( 'hmain_bg' , array( 'sanitize_callback' => 'sanitize_hex_color', 'default' => '#ffffff', 'transport' => 'refresh', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'hmain_bg', array( 'label' => esc_html__( 'Header Background Color', 'abcblog' ), 'section' => 'header_color', 'settings' => 'hmain_bg', 'priority' => 1, ) ) ); $wp_customize->add_setting( 'menu_font_color' , array( 'sanitize_callback' => 'sanitize_hex_color', 'default' => '#222222', 'transport' => 'refresh', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'menu_font_color', array( 'label' => esc_html__( 'Navigation Menu Font Color', 'abcblog' ), 'section' => 'header_color', 'settings' => 'menu_font_color', 'priority' => 3, ) ) ); $wp_customize->add_setting( 'menu_font__hover_color' , array( 'sanitize_callback' => 'sanitize_hex_color', 'default' => '#0c9ba4', 'transport' => 'refresh', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'menu_font__hover_color', array( 'label' => esc_html__( 'Navigation Menu Hover Color', 'abcblog' ), 'section' => 'header_color', 'settings' => 'menu_font__hover_color', 'priority' => 3, ) ) ); $wp_customize->add_section( 'footer_color' , array( 'title' => esc_html__( 'Footer Color', 'abcblog' ), 'priority' => 4, 'description' => 'Control site footer color', 'panel' => 'color_panel' ) ); $wp_customize->add_setting( 'hfoot_bg' , array( 'sanitize_callback' => 'sanitize_hex_color', 'default' => '#333333', 'transport' => 'refresh', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'hfoot_bg', array( 'label' => esc_html__( 'Footer Background Color', 'abcblog' ), 'section' => 'footer_color', 'settings' => 'hfoot_bg', 'priority' => 1, ) ) ); $wp_customize->add_setting( 'siteinfo_bg' , array( 'sanitize_callback' => 'sanitize_hex_color', 'default' => '#000000', 'transport' => 'refresh', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'siteinfo_bg', array( 'label' => esc_html__( 'Footer Bottom Background Color', 'abcblog' ), 'section' => 'footer_color', 'settings' => 'siteinfo_bg', 'priority' => 2, ) ) ); $wp_customize->remove_section( 'colors'); } add_action( 'customize_register', 'abcblog_color_settings_register' );