add_section('header_customizer', array( 'title' => __( 'Header', 'atlantisak'), 'priority' => 3, 'description' => __('Customize Your Header', 'atlantisak'), 'panel' => 'atlantisAk_customize', )); //header background color $wp_customize->add_setting('header_bg_color', array( 'default' => '#f8f9fa', 'sanitize_callback' => 'sanitize_hex_color', )); $wp_customize->add_control(new Wp_Customize_Color_Control($wp_customize, 'header_bg_color', [ 'label' => __('Header Background Color', 'atlantisak'), 'setting' => 'header_bg_color', 'section' => 'header_customizer', ])); //header menu color $wp_customize->add_setting('header_menu_color', array( 'default' => '#343a40', 'sanitize_callback' => 'sanitize_hex_color', )); $wp_customize->add_control(new Wp_Customize_Color_Control($wp_customize, 'header_menu_color', array( 'label' => esc_html__('Header Menu Color', 'atlantisak'), 'setting' => 'header_menu_color', 'section' => 'header_customizer', ))); //header menu hover color $wp_customize->add_setting('header_menu_hover_color', array( 'default' => '', 'sanitize_callback' => 'sanitize_hex_color', )); $wp_customize->add_control(new Wp_Customize_Color_Control($wp_customize, 'header_menu_hover_color', array( 'label' => __('Header Menu Hover Color', 'atlantisak'), 'setting' => 'header_menu_hover_color', 'section' => 'header_customizer', ))); //header sticky background color $wp_customize->add_setting('header_sticky_bg_color', array( 'default' => '#f8f9fa', 'sanitize_callback' => 'sanitize_hex_color', )); $wp_customize->add_control(new Wp_Customize_Color_Control($wp_customize, 'header_sticky_bg_color', array( 'label' => esc_html__('Header Sticky Background Color', 'atlantisak'), 'setting' => 'header_sticky_bg_color', 'description' => 'sticky background color', 'section' => 'header_customizer', ))); //header menu font size $wp_customize->add_setting('header_menu_font_size', array( 'default' => '14px', 'sanitize_callback' => 'wp_filter_nohtml_kses', )); $wp_customize->add_control('header_menu_font_size', array( 'label' => esc_html__('Header Menu Font Size (px)', 'atlantisak'), 'type' => 'text', 'setting' => 'header_menu_font_size', 'description' => 'Change Menu Font Size(px)', 'section' => 'header_customizer', )); }