$wp_customize->add_control(
new ET_Divi_Range_Option(
'et_divi[secondary_nav_font_spacing]',
'label' => esc_html__( 'Letter Spacing', 'Divi' ),
'section' => 'et_divi_header_secondary',
$wp_customize->add_setting(
'et_divi[secondary_nav_font]',
'capability' => 'edit_theme_options',
'transport' => 'postMessage',
'sanitize_callback' => 'et_sanitize_font_choices',
$wp_customize->add_control(
new ET_Divi_Select_Option(
'et_divi[secondary_nav_font]',
'label' => esc_html__( 'Font', 'Divi' ),
'section' => 'et_divi_header_secondary',
'settings' => 'et_divi[secondary_nav_font]',
'choices' => $font_choices,
$wp_customize->add_setting(
'et_divi[secondary_nav_font_style]',
'capability' => 'edit_theme_options',
'transport' => 'postMessage',
'sanitize_callback' => 'et_sanitize_font_style',
$wp_customize->add_control(
new ET_Divi_Font_Style_Option(
'et_divi[secondary_nav_font_style]',
'label' => esc_html__( 'Font Style', 'Divi' ),
'section' => 'et_divi_header_secondary',
'choices' => et_divi_font_style_choices(),
$wp_customize->add_setting(
'default' => 'rgba(0,0,0,0.6)',
'capability' => 'edit_theme_options',
'transport' => 'postMessage',
'sanitize_callback' => 'et_sanitize_alpha_color',
$wp_customize->add_control(
new ET_Divi_Customize_Color_Alpha_Control(
'label' => esc_html__( 'Text Color', 'Divi' ),
'section' => 'et_divi_header_primary',
'settings' => 'et_divi[menu_link]',
$wp_customize->add_setting(
'et_divi[hide_mobile_logo]',
'capability' => 'edit_theme_options',
'transport' => 'postMessage',
'sanitize_callback' => 'wp_validate_boolean',
$wp_customize->add_control(
'et_divi[hide_mobile_logo]',
'label' => esc_html__( 'Hide Logo Image', 'Divi' ),
'section' => 'et_divi_mobile_menu',
$wp_customize->add_setting(
'et_divi[mobile_menu_link]',
'default' => et_get_option( 'menu_link', 'rgba(0,0,0,0.6)' ),
'capability' => 'edit_theme_options',
'transport' => 'postMessage',
'sanitize_callback' => 'et_sanitize_alpha_color',
$wp_customize->add_control(
new ET_Divi_Customize_Color_Alpha_Control(
'et_divi[mobile_menu_link]',
'label' => esc_html__( 'Text Color', 'Divi' ),
'section' => 'et_divi_mobile_menu',
'settings' => 'et_divi[mobile_menu_link]',
$wp_customize->add_setting(
'et_divi[menu_link_active]',
'default' => et_get_option( 'accent_color', '#2ea3f2' ),
'capability' => 'edit_theme_options',
'transport' => 'postMessage',
'sanitize_callback' => 'et_sanitize_alpha_color',
$wp_customize->add_control(
new ET_Divi_Customize_Color_Alpha_Control(
'et_divi[menu_link_active]',
'label' => esc_html__( 'Active Link Color', 'Divi' ),
'section' => 'et_divi_header_primary',
'settings' => 'et_divi[menu_link_active]',
$wp_customize->add_setting(
'et_divi[primary_nav_bg]',
'capability' => 'edit_theme_options',
'transport' => 'postMessage',
'sanitize_callback' => 'et_sanitize_alpha_color',
$wp_customize->add_control(
new ET_Divi_Customize_Color_Alpha_Control(
'et_divi[primary_nav_bg]',
'label' => esc_html__( 'Background Color', 'Divi' ),
'section' => 'et_divi_header_primary',
'settings' => 'et_divi[primary_nav_bg]',
$wp_customize->add_setting(
'et_divi[primary_nav_dropdown_bg]',
'default' => et_get_option( 'primary_nav_bg', '#ffffff' ),
'capability' => 'edit_theme_options',
'transport' => 'postMessage',
'sanitize_callback' => 'et_sanitize_alpha_color',
$wp_customize->add_control(
new ET_Divi_Customize_Color_Alpha_Control(
'et_divi[primary_nav_dropdown_bg]',
'label' => esc_html__( 'Dropdown Menu Background Color', 'Divi' ),
'section' => 'et_divi_header_primary',
'settings' => 'et_divi[primary_nav_dropdown_bg]',
$wp_customize->add_setting(
'et_divi[primary_nav_dropdown_line_color]',
'default' => et_get_option( 'accent_color', '#2ea3f2' ),
'capability' => 'edit_theme_options',
'transport' => 'postMessage',
'sanitize_callback' => 'et_sanitize_alpha_color',
$wp_customize->add_control(
new ET_Divi_Customize_Color_Alpha_Control(
'et_divi[primary_nav_dropdown_line_color]',
'label' => esc_html__( 'Dropdown Menu Line Color', 'Divi' ),
'section' => 'et_divi_header_primary',
'settings' => 'et_divi[primary_nav_dropdown_line_color]',
$wp_customize->add_setting(
'et_divi[primary_nav_dropdown_link_color]',
'default' => et_get_option( 'menu_link', 'rgba(0,0,0,0.7)' ),
'capability' => 'edit_theme_options',
'transport' => 'postMessage',
'sanitize_callback' => 'et_sanitize_alpha_color',
$wp_customize->add_control(
new ET_Divi_Customize_Color_Alpha_Control(
'et_divi[primary_nav_dropdown_link_color]',
'label' => esc_html__( 'Dropdown Menu Text Color', 'Divi' ),
'section' => 'et_divi_header_primary',
'settings' => 'et_divi[primary_nav_dropdown_link_color]',
$wp_customize->add_setting(
'et_divi[primary_nav_dropdown_animation]',
'capability' => 'edit_theme_options',
'transport' => 'postMessage',
'sanitize_callback' => 'et_sanitize_dropdown_animation',
$wp_customize->add_control(
'et_divi[primary_nav_dropdown_animation]',
'label' => esc_html__( 'Dropdown Menu Animation', 'Divi' ),
'section' => 'et_divi_header_primary',
'choices' => et_divi_dropdown_animation_choices(),
$wp_customize->add_setting(
'et_divi[mobile_primary_nav_bg]',
'default' => et_get_option( 'primary_nav_bg', '#ffffff' ),
'capability' => 'edit_theme_options',
'transport' => 'postMessage',
'sanitize_callback' => 'et_sanitize_alpha_color',
$wp_customize->add_control(
new ET_Divi_Customize_Color_Alpha_Control(
'et_divi[mobile_primary_nav_bg]',
'label' => esc_html__( 'Background Color', 'Divi' ),
'section' => 'et_divi_mobile_menu',
'settings' => 'et_divi[mobile_primary_nav_bg]',
$wp_customize->add_setting(
'et_divi[secondary_nav_bg]',
'default' => et_get_option( 'accent_color', '#2ea3f2' ),
'capability' => 'edit_theme_options',
'transport' => 'postMessage',
'sanitize_callback' => 'et_sanitize_alpha_color',
$wp_customize->add_control(
new ET_Divi_Customize_Color_Alpha_Control(
'et_divi[secondary_nav_bg]',
'label' => esc_html__( 'Background Color', 'Divi' ),
'section' => 'et_divi_header_secondary',
'settings' => 'et_divi[secondary_nav_bg]',
$wp_customize->add_setting(
'et_divi[secondary_nav_text_color_new]',
'capability' => 'edit_theme_options',
'transport' => 'postMessage',
'sanitize_callback' => 'et_sanitize_alpha_color',
$wp_customize->add_control(
new ET_Divi_Customize_Color_Alpha_Control(
'et_divi[secondary_nav_text_color_new]',
'label' => esc_html__( 'Text Color', 'Divi' ),
'section' => 'et_divi_header_secondary',
'settings' => 'et_divi[secondary_nav_text_color_new]',
$wp_customize->add_setting(
'et_divi[secondary_nav_dropdown_bg]',
'default' => et_get_option( 'secondary_nav_bg', et_get_option( 'accent_color', '#2ea3f2' ) ),
'capability' => 'edit_theme_options',
'transport' => 'postMessage',
'sanitize_callback' => 'et_sanitize_alpha_color',
$wp_customize->add_control(
new ET_Divi_Customize_Color_Alpha_Control(
'et_divi[secondary_nav_dropdown_bg]',
'label' => esc_html__( 'Dropdown Menu Background Color', 'Divi' ),
'section' => 'et_divi_header_secondary',
'settings' => 'et_divi[secondary_nav_dropdown_bg]',
$wp_customize->add_setting(
'et_divi[secondary_nav_dropdown_link_color]',
'default' => et_get_option( 'secondary_nav_text_color_new', '#ffffff' ),
'capability' => 'edit_theme_options',
'transport' => 'postMessage',
'sanitize_callback' => 'et_sanitize_alpha_color',
$wp_customize->add_control(
new ET_Divi_Customize_Color_Alpha_Control(
'et_divi[secondary_nav_dropdown_link_color]',
'label' => esc_html__( 'Dropdown Menu Text Color', 'Divi' ),
'section' => 'et_divi_header_secondary',
'settings' => 'et_divi[secondary_nav_dropdown_link_color]',
$wp_customize->add_setting(
'et_divi[secondary_nav_dropdown_animation]',
'capability' => 'edit_theme_options',
'transport' => 'postMessage',
'sanitize_callback' => 'et_sanitize_dropdown_animation',
$wp_customize->add_control(
'et_divi[secondary_nav_dropdown_animation]',
'label' => esc_html__( 'Dropdown Menu Animation', 'Divi' ),
'section' => 'et_divi_header_secondary',
'choices' => et_divi_dropdown_animation_choices(),
// Setting with no control kept for backwards compatbility.
$wp_customize->add_setting(
'et_divi[primary_nav_text_color]',
'capability' => 'edit_theme_options',
'transport' => 'postMessage',
'sanitize_callback' => 'sanitize_hex_color',
// Setting with no control kept for backwards compatbility.
$wp_customize->add_setting(
'et_divi[secondary_nav_text_color]',
'capability' => 'edit_theme_options',
'transport' => 'postMessage',
'sanitize_callback' => 'sanitize_hex_color',
if ( 'on' === et_get_option( 'divi_fixed_nav', 'on' ) ) {
$wp_customize->add_setting(
'et_divi[hide_fixed_logo]',
'capability' => 'edit_theme_options',
'transport' => 'postMessage',
'sanitize_callback' => 'wp_validate_boolean',
$wp_customize->add_control(
'et_divi[hide_fixed_logo]',
'label' => esc_html__( 'Hide Logo Image', 'Divi' ),
'section' => 'et_divi_header_fixed',
$wp_customize->add_setting(
'et_divi[minimized_menu_height]',
'capability' => 'edit_theme_options',
'transport' => 'postMessage',
'sanitize_callback' => 'absint',
$wp_customize->add_control(
new ET_Divi_Range_Option(
'et_divi[minimized_menu_height]',
'label' => esc_html__( 'Fixed Menu Height', 'Divi' ),
'section' => 'et_divi_header_fixed',
$wp_customize->add_setting(
'et_divi[fixed_primary_nav_font_size]',
'default' => et_get_option( 'primary_nav_font_size', '14' ),
'capability' => 'edit_theme_options',
'transport' => 'postMessage',
'sanitize_callback' => 'absint',
$wp_customize->add_control(
new ET_Divi_Range_Option(
'et_divi[fixed_primary_nav_font_size]',
'label' => esc_html__( 'Text Size', 'Divi' ),
'section' => 'et_divi_header_fixed',