Edit File by line
/home/barbar84/www/wp-conte.../themes/Divi
File: functions.php
[3000] Fix | Delete
$wp_customize->add_control(
[3001] Fix | Delete
new ET_Divi_Range_Option(
[3002] Fix | Delete
$wp_customize,
[3003] Fix | Delete
'et_divi[secondary_nav_font_spacing]',
[3004] Fix | Delete
array(
[3005] Fix | Delete
'label' => esc_html__( 'Letter Spacing', 'Divi' ),
[3006] Fix | Delete
'section' => 'et_divi_header_secondary',
[3007] Fix | Delete
'type' => 'range',
[3008] Fix | Delete
'input_attrs' => array(
[3009] Fix | Delete
'min' => -1,
[3010] Fix | Delete
'max' => 8,
[3011] Fix | Delete
'step' => 1,
[3012] Fix | Delete
),
[3013] Fix | Delete
)
[3014] Fix | Delete
)
[3015] Fix | Delete
);
[3016] Fix | Delete
[3017] Fix | Delete
$wp_customize->add_setting(
[3018] Fix | Delete
'et_divi[secondary_nav_font]',
[3019] Fix | Delete
array(
[3020] Fix | Delete
'default' => 'none',
[3021] Fix | Delete
'type' => 'option',
[3022] Fix | Delete
'capability' => 'edit_theme_options',
[3023] Fix | Delete
'transport' => 'postMessage',
[3024] Fix | Delete
'sanitize_callback' => 'et_sanitize_font_choices',
[3025] Fix | Delete
)
[3026] Fix | Delete
);
[3027] Fix | Delete
[3028] Fix | Delete
$wp_customize->add_control(
[3029] Fix | Delete
new ET_Divi_Select_Option(
[3030] Fix | Delete
$wp_customize,
[3031] Fix | Delete
'et_divi[secondary_nav_font]',
[3032] Fix | Delete
array(
[3033] Fix | Delete
'label' => esc_html__( 'Font', 'Divi' ),
[3034] Fix | Delete
'section' => 'et_divi_header_secondary',
[3035] Fix | Delete
'settings' => 'et_divi[secondary_nav_font]',
[3036] Fix | Delete
'type' => 'select',
[3037] Fix | Delete
'choices' => $font_choices,
[3038] Fix | Delete
)
[3039] Fix | Delete
)
[3040] Fix | Delete
);
[3041] Fix | Delete
[3042] Fix | Delete
$wp_customize->add_setting(
[3043] Fix | Delete
'et_divi[secondary_nav_font_style]',
[3044] Fix | Delete
array(
[3045] Fix | Delete
'default' => '',
[3046] Fix | Delete
'type' => 'option',
[3047] Fix | Delete
'capability' => 'edit_theme_options',
[3048] Fix | Delete
'transport' => 'postMessage',
[3049] Fix | Delete
'sanitize_callback' => 'et_sanitize_font_style',
[3050] Fix | Delete
)
[3051] Fix | Delete
);
[3052] Fix | Delete
[3053] Fix | Delete
$wp_customize->add_control(
[3054] Fix | Delete
new ET_Divi_Font_Style_Option(
[3055] Fix | Delete
$wp_customize,
[3056] Fix | Delete
'et_divi[secondary_nav_font_style]',
[3057] Fix | Delete
array(
[3058] Fix | Delete
'label' => esc_html__( 'Font Style', 'Divi' ),
[3059] Fix | Delete
'section' => 'et_divi_header_secondary',
[3060] Fix | Delete
'type' => 'font_style',
[3061] Fix | Delete
'choices' => et_divi_font_style_choices(),
[3062] Fix | Delete
)
[3063] Fix | Delete
)
[3064] Fix | Delete
);
[3065] Fix | Delete
[3066] Fix | Delete
$wp_customize->add_setting(
[3067] Fix | Delete
'et_divi[menu_link]',
[3068] Fix | Delete
array(
[3069] Fix | Delete
'default' => 'rgba(0,0,0,0.6)',
[3070] Fix | Delete
'type' => 'option',
[3071] Fix | Delete
'capability' => 'edit_theme_options',
[3072] Fix | Delete
'transport' => 'postMessage',
[3073] Fix | Delete
'sanitize_callback' => 'et_sanitize_alpha_color',
[3074] Fix | Delete
)
[3075] Fix | Delete
);
[3076] Fix | Delete
[3077] Fix | Delete
$wp_customize->add_control(
[3078] Fix | Delete
new ET_Divi_Customize_Color_Alpha_Control(
[3079] Fix | Delete
$wp_customize,
[3080] Fix | Delete
'et_divi[menu_link]',
[3081] Fix | Delete
array(
[3082] Fix | Delete
'label' => esc_html__( 'Text Color', 'Divi' ),
[3083] Fix | Delete
'section' => 'et_divi_header_primary',
[3084] Fix | Delete
'settings' => 'et_divi[menu_link]',
[3085] Fix | Delete
)
[3086] Fix | Delete
)
[3087] Fix | Delete
);
[3088] Fix | Delete
[3089] Fix | Delete
$wp_customize->add_setting(
[3090] Fix | Delete
'et_divi[hide_mobile_logo]',
[3091] Fix | Delete
array(
[3092] Fix | Delete
'type' => 'option',
[3093] Fix | Delete
'capability' => 'edit_theme_options',
[3094] Fix | Delete
'transport' => 'postMessage',
[3095] Fix | Delete
'sanitize_callback' => 'wp_validate_boolean',
[3096] Fix | Delete
)
[3097] Fix | Delete
);
[3098] Fix | Delete
[3099] Fix | Delete
$wp_customize->add_control(
[3100] Fix | Delete
'et_divi[hide_mobile_logo]',
[3101] Fix | Delete
array(
[3102] Fix | Delete
'label' => esc_html__( 'Hide Logo Image', 'Divi' ),
[3103] Fix | Delete
'section' => 'et_divi_mobile_menu',
[3104] Fix | Delete
'type' => 'checkbox',
[3105] Fix | Delete
)
[3106] Fix | Delete
);
[3107] Fix | Delete
[3108] Fix | Delete
$wp_customize->add_setting(
[3109] Fix | Delete
'et_divi[mobile_menu_link]',
[3110] Fix | Delete
array(
[3111] Fix | Delete
'default' => et_get_option( 'menu_link', 'rgba(0,0,0,0.6)' ),
[3112] Fix | Delete
'type' => 'option',
[3113] Fix | Delete
'capability' => 'edit_theme_options',
[3114] Fix | Delete
'transport' => 'postMessage',
[3115] Fix | Delete
'sanitize_callback' => 'et_sanitize_alpha_color',
[3116] Fix | Delete
)
[3117] Fix | Delete
);
[3118] Fix | Delete
[3119] Fix | Delete
$wp_customize->add_control(
[3120] Fix | Delete
new ET_Divi_Customize_Color_Alpha_Control(
[3121] Fix | Delete
$wp_customize,
[3122] Fix | Delete
'et_divi[mobile_menu_link]',
[3123] Fix | Delete
array(
[3124] Fix | Delete
'label' => esc_html__( 'Text Color', 'Divi' ),
[3125] Fix | Delete
'section' => 'et_divi_mobile_menu',
[3126] Fix | Delete
'settings' => 'et_divi[mobile_menu_link]',
[3127] Fix | Delete
)
[3128] Fix | Delete
)
[3129] Fix | Delete
);
[3130] Fix | Delete
[3131] Fix | Delete
$wp_customize->add_setting(
[3132] Fix | Delete
'et_divi[menu_link_active]',
[3133] Fix | Delete
array(
[3134] Fix | Delete
'default' => et_get_option( 'accent_color', '#2ea3f2' ),
[3135] Fix | Delete
'type' => 'option',
[3136] Fix | Delete
'capability' => 'edit_theme_options',
[3137] Fix | Delete
'transport' => 'postMessage',
[3138] Fix | Delete
'sanitize_callback' => 'et_sanitize_alpha_color',
[3139] Fix | Delete
)
[3140] Fix | Delete
);
[3141] Fix | Delete
[3142] Fix | Delete
$wp_customize->add_control(
[3143] Fix | Delete
new ET_Divi_Customize_Color_Alpha_Control(
[3144] Fix | Delete
$wp_customize,
[3145] Fix | Delete
'et_divi[menu_link_active]',
[3146] Fix | Delete
array(
[3147] Fix | Delete
'label' => esc_html__( 'Active Link Color', 'Divi' ),
[3148] Fix | Delete
'section' => 'et_divi_header_primary',
[3149] Fix | Delete
'settings' => 'et_divi[menu_link_active]',
[3150] Fix | Delete
)
[3151] Fix | Delete
)
[3152] Fix | Delete
);
[3153] Fix | Delete
[3154] Fix | Delete
$wp_customize->add_setting(
[3155] Fix | Delete
'et_divi[primary_nav_bg]',
[3156] Fix | Delete
array(
[3157] Fix | Delete
'default' => '#ffffff',
[3158] Fix | Delete
'type' => 'option',
[3159] Fix | Delete
'capability' => 'edit_theme_options',
[3160] Fix | Delete
'transport' => 'postMessage',
[3161] Fix | Delete
'sanitize_callback' => 'et_sanitize_alpha_color',
[3162] Fix | Delete
)
[3163] Fix | Delete
);
[3164] Fix | Delete
[3165] Fix | Delete
$wp_customize->add_control(
[3166] Fix | Delete
new ET_Divi_Customize_Color_Alpha_Control(
[3167] Fix | Delete
$wp_customize,
[3168] Fix | Delete
'et_divi[primary_nav_bg]',
[3169] Fix | Delete
array(
[3170] Fix | Delete
'label' => esc_html__( 'Background Color', 'Divi' ),
[3171] Fix | Delete
'section' => 'et_divi_header_primary',
[3172] Fix | Delete
'settings' => 'et_divi[primary_nav_bg]',
[3173] Fix | Delete
)
[3174] Fix | Delete
)
[3175] Fix | Delete
);
[3176] Fix | Delete
[3177] Fix | Delete
$wp_customize->add_setting(
[3178] Fix | Delete
'et_divi[primary_nav_dropdown_bg]',
[3179] Fix | Delete
array(
[3180] Fix | Delete
'default' => et_get_option( 'primary_nav_bg', '#ffffff' ),
[3181] Fix | Delete
'type' => 'option',
[3182] Fix | Delete
'capability' => 'edit_theme_options',
[3183] Fix | Delete
'transport' => 'postMessage',
[3184] Fix | Delete
'sanitize_callback' => 'et_sanitize_alpha_color',
[3185] Fix | Delete
)
[3186] Fix | Delete
);
[3187] Fix | Delete
[3188] Fix | Delete
$wp_customize->add_control(
[3189] Fix | Delete
new ET_Divi_Customize_Color_Alpha_Control(
[3190] Fix | Delete
$wp_customize,
[3191] Fix | Delete
'et_divi[primary_nav_dropdown_bg]',
[3192] Fix | Delete
array(
[3193] Fix | Delete
'label' => esc_html__( 'Dropdown Menu Background Color', 'Divi' ),
[3194] Fix | Delete
'section' => 'et_divi_header_primary',
[3195] Fix | Delete
'settings' => 'et_divi[primary_nav_dropdown_bg]',
[3196] Fix | Delete
)
[3197] Fix | Delete
)
[3198] Fix | Delete
);
[3199] Fix | Delete
[3200] Fix | Delete
$wp_customize->add_setting(
[3201] Fix | Delete
'et_divi[primary_nav_dropdown_line_color]',
[3202] Fix | Delete
array(
[3203] Fix | Delete
'default' => et_get_option( 'accent_color', '#2ea3f2' ),
[3204] Fix | Delete
'type' => 'option',
[3205] Fix | Delete
'capability' => 'edit_theme_options',
[3206] Fix | Delete
'transport' => 'postMessage',
[3207] Fix | Delete
'sanitize_callback' => 'et_sanitize_alpha_color',
[3208] Fix | Delete
)
[3209] Fix | Delete
);
[3210] Fix | Delete
[3211] Fix | Delete
$wp_customize->add_control(
[3212] Fix | Delete
new ET_Divi_Customize_Color_Alpha_Control(
[3213] Fix | Delete
$wp_customize,
[3214] Fix | Delete
'et_divi[primary_nav_dropdown_line_color]',
[3215] Fix | Delete
array(
[3216] Fix | Delete
'label' => esc_html__( 'Dropdown Menu Line Color', 'Divi' ),
[3217] Fix | Delete
'section' => 'et_divi_header_primary',
[3218] Fix | Delete
'settings' => 'et_divi[primary_nav_dropdown_line_color]',
[3219] Fix | Delete
)
[3220] Fix | Delete
)
[3221] Fix | Delete
);
[3222] Fix | Delete
[3223] Fix | Delete
$wp_customize->add_setting(
[3224] Fix | Delete
'et_divi[primary_nav_dropdown_link_color]',
[3225] Fix | Delete
array(
[3226] Fix | Delete
'default' => et_get_option( 'menu_link', 'rgba(0,0,0,0.7)' ),
[3227] Fix | Delete
'type' => 'option',
[3228] Fix | Delete
'capability' => 'edit_theme_options',
[3229] Fix | Delete
'transport' => 'postMessage',
[3230] Fix | Delete
'sanitize_callback' => 'et_sanitize_alpha_color',
[3231] Fix | Delete
)
[3232] Fix | Delete
);
[3233] Fix | Delete
[3234] Fix | Delete
$wp_customize->add_control(
[3235] Fix | Delete
new ET_Divi_Customize_Color_Alpha_Control(
[3236] Fix | Delete
$wp_customize,
[3237] Fix | Delete
'et_divi[primary_nav_dropdown_link_color]',
[3238] Fix | Delete
array(
[3239] Fix | Delete
'label' => esc_html__( 'Dropdown Menu Text Color', 'Divi' ),
[3240] Fix | Delete
'section' => 'et_divi_header_primary',
[3241] Fix | Delete
'settings' => 'et_divi[primary_nav_dropdown_link_color]',
[3242] Fix | Delete
)
[3243] Fix | Delete
)
[3244] Fix | Delete
);
[3245] Fix | Delete
[3246] Fix | Delete
$wp_customize->add_setting(
[3247] Fix | Delete
'et_divi[primary_nav_dropdown_animation]',
[3248] Fix | Delete
array(
[3249] Fix | Delete
'default' => 'fade',
[3250] Fix | Delete
'type' => 'option',
[3251] Fix | Delete
'capability' => 'edit_theme_options',
[3252] Fix | Delete
'transport' => 'postMessage',
[3253] Fix | Delete
'sanitize_callback' => 'et_sanitize_dropdown_animation',
[3254] Fix | Delete
)
[3255] Fix | Delete
);
[3256] Fix | Delete
[3257] Fix | Delete
$wp_customize->add_control(
[3258] Fix | Delete
'et_divi[primary_nav_dropdown_animation]',
[3259] Fix | Delete
array(
[3260] Fix | Delete
'label' => esc_html__( 'Dropdown Menu Animation', 'Divi' ),
[3261] Fix | Delete
'section' => 'et_divi_header_primary',
[3262] Fix | Delete
'type' => 'select',
[3263] Fix | Delete
'choices' => et_divi_dropdown_animation_choices(),
[3264] Fix | Delete
)
[3265] Fix | Delete
);
[3266] Fix | Delete
[3267] Fix | Delete
$wp_customize->add_setting(
[3268] Fix | Delete
'et_divi[mobile_primary_nav_bg]',
[3269] Fix | Delete
array(
[3270] Fix | Delete
'default' => et_get_option( 'primary_nav_bg', '#ffffff' ),
[3271] Fix | Delete
'type' => 'option',
[3272] Fix | Delete
'capability' => 'edit_theme_options',
[3273] Fix | Delete
'transport' => 'postMessage',
[3274] Fix | Delete
'sanitize_callback' => 'et_sanitize_alpha_color',
[3275] Fix | Delete
)
[3276] Fix | Delete
);
[3277] Fix | Delete
[3278] Fix | Delete
$wp_customize->add_control(
[3279] Fix | Delete
new ET_Divi_Customize_Color_Alpha_Control(
[3280] Fix | Delete
$wp_customize,
[3281] Fix | Delete
'et_divi[mobile_primary_nav_bg]',
[3282] Fix | Delete
array(
[3283] Fix | Delete
'label' => esc_html__( 'Background Color', 'Divi' ),
[3284] Fix | Delete
'section' => 'et_divi_mobile_menu',
[3285] Fix | Delete
'settings' => 'et_divi[mobile_primary_nav_bg]',
[3286] Fix | Delete
)
[3287] Fix | Delete
)
[3288] Fix | Delete
);
[3289] Fix | Delete
[3290] Fix | Delete
$wp_customize->add_setting(
[3291] Fix | Delete
'et_divi[secondary_nav_bg]',
[3292] Fix | Delete
array(
[3293] Fix | Delete
'default' => et_get_option( 'accent_color', '#2ea3f2' ),
[3294] Fix | Delete
'type' => 'option',
[3295] Fix | Delete
'capability' => 'edit_theme_options',
[3296] Fix | Delete
'transport' => 'postMessage',
[3297] Fix | Delete
'sanitize_callback' => 'et_sanitize_alpha_color',
[3298] Fix | Delete
)
[3299] Fix | Delete
);
[3300] Fix | Delete
[3301] Fix | Delete
$wp_customize->add_control(
[3302] Fix | Delete
new ET_Divi_Customize_Color_Alpha_Control(
[3303] Fix | Delete
$wp_customize,
[3304] Fix | Delete
'et_divi[secondary_nav_bg]',
[3305] Fix | Delete
array(
[3306] Fix | Delete
'label' => esc_html__( 'Background Color', 'Divi' ),
[3307] Fix | Delete
'section' => 'et_divi_header_secondary',
[3308] Fix | Delete
'settings' => 'et_divi[secondary_nav_bg]',
[3309] Fix | Delete
)
[3310] Fix | Delete
)
[3311] Fix | Delete
);
[3312] Fix | Delete
[3313] Fix | Delete
$wp_customize->add_setting(
[3314] Fix | Delete
'et_divi[secondary_nav_text_color_new]',
[3315] Fix | Delete
array(
[3316] Fix | Delete
'default' => '#ffffff',
[3317] Fix | Delete
'type' => 'option',
[3318] Fix | Delete
'capability' => 'edit_theme_options',
[3319] Fix | Delete
'transport' => 'postMessage',
[3320] Fix | Delete
'sanitize_callback' => 'et_sanitize_alpha_color',
[3321] Fix | Delete
)
[3322] Fix | Delete
);
[3323] Fix | Delete
[3324] Fix | Delete
$wp_customize->add_control(
[3325] Fix | Delete
new ET_Divi_Customize_Color_Alpha_Control(
[3326] Fix | Delete
$wp_customize,
[3327] Fix | Delete
'et_divi[secondary_nav_text_color_new]',
[3328] Fix | Delete
array(
[3329] Fix | Delete
'label' => esc_html__( 'Text Color', 'Divi' ),
[3330] Fix | Delete
'section' => 'et_divi_header_secondary',
[3331] Fix | Delete
'settings' => 'et_divi[secondary_nav_text_color_new]',
[3332] Fix | Delete
)
[3333] Fix | Delete
)
[3334] Fix | Delete
);
[3335] Fix | Delete
[3336] Fix | Delete
$wp_customize->add_setting(
[3337] Fix | Delete
'et_divi[secondary_nav_dropdown_bg]',
[3338] Fix | Delete
array(
[3339] Fix | Delete
'default' => et_get_option( 'secondary_nav_bg', et_get_option( 'accent_color', '#2ea3f2' ) ),
[3340] Fix | Delete
'type' => 'option',
[3341] Fix | Delete
'capability' => 'edit_theme_options',
[3342] Fix | Delete
'transport' => 'postMessage',
[3343] Fix | Delete
'sanitize_callback' => 'et_sanitize_alpha_color',
[3344] Fix | Delete
)
[3345] Fix | Delete
);
[3346] Fix | Delete
[3347] Fix | Delete
$wp_customize->add_control(
[3348] Fix | Delete
new ET_Divi_Customize_Color_Alpha_Control(
[3349] Fix | Delete
$wp_customize,
[3350] Fix | Delete
'et_divi[secondary_nav_dropdown_bg]',
[3351] Fix | Delete
array(
[3352] Fix | Delete
'label' => esc_html__( 'Dropdown Menu Background Color', 'Divi' ),
[3353] Fix | Delete
'section' => 'et_divi_header_secondary',
[3354] Fix | Delete
'settings' => 'et_divi[secondary_nav_dropdown_bg]',
[3355] Fix | Delete
)
[3356] Fix | Delete
)
[3357] Fix | Delete
);
[3358] Fix | Delete
[3359] Fix | Delete
$wp_customize->add_setting(
[3360] Fix | Delete
'et_divi[secondary_nav_dropdown_link_color]',
[3361] Fix | Delete
array(
[3362] Fix | Delete
'default' => et_get_option( 'secondary_nav_text_color_new', '#ffffff' ),
[3363] Fix | Delete
'type' => 'option',
[3364] Fix | Delete
'capability' => 'edit_theme_options',
[3365] Fix | Delete
'transport' => 'postMessage',
[3366] Fix | Delete
'sanitize_callback' => 'et_sanitize_alpha_color',
[3367] Fix | Delete
)
[3368] Fix | Delete
);
[3369] Fix | Delete
[3370] Fix | Delete
$wp_customize->add_control(
[3371] Fix | Delete
new ET_Divi_Customize_Color_Alpha_Control(
[3372] Fix | Delete
$wp_customize,
[3373] Fix | Delete
'et_divi[secondary_nav_dropdown_link_color]',
[3374] Fix | Delete
array(
[3375] Fix | Delete
'label' => esc_html__( 'Dropdown Menu Text Color', 'Divi' ),
[3376] Fix | Delete
'section' => 'et_divi_header_secondary',
[3377] Fix | Delete
'settings' => 'et_divi[secondary_nav_dropdown_link_color]',
[3378] Fix | Delete
)
[3379] Fix | Delete
)
[3380] Fix | Delete
);
[3381] Fix | Delete
[3382] Fix | Delete
$wp_customize->add_setting(
[3383] Fix | Delete
'et_divi[secondary_nav_dropdown_animation]',
[3384] Fix | Delete
array(
[3385] Fix | Delete
'default' => 'fade',
[3386] Fix | Delete
'type' => 'option',
[3387] Fix | Delete
'capability' => 'edit_theme_options',
[3388] Fix | Delete
'transport' => 'postMessage',
[3389] Fix | Delete
'sanitize_callback' => 'et_sanitize_dropdown_animation',
[3390] Fix | Delete
)
[3391] Fix | Delete
);
[3392] Fix | Delete
[3393] Fix | Delete
$wp_customize->add_control(
[3394] Fix | Delete
'et_divi[secondary_nav_dropdown_animation]',
[3395] Fix | Delete
array(
[3396] Fix | Delete
'label' => esc_html__( 'Dropdown Menu Animation', 'Divi' ),
[3397] Fix | Delete
'section' => 'et_divi_header_secondary',
[3398] Fix | Delete
'type' => 'select',
[3399] Fix | Delete
'choices' => et_divi_dropdown_animation_choices(),
[3400] Fix | Delete
)
[3401] Fix | Delete
);
[3402] Fix | Delete
[3403] Fix | Delete
// Setting with no control kept for backwards compatbility.
[3404] Fix | Delete
$wp_customize->add_setting(
[3405] Fix | Delete
'et_divi[primary_nav_text_color]',
[3406] Fix | Delete
array(
[3407] Fix | Delete
'default' => 'dark',
[3408] Fix | Delete
'type' => 'option',
[3409] Fix | Delete
'capability' => 'edit_theme_options',
[3410] Fix | Delete
'transport' => 'postMessage',
[3411] Fix | Delete
'sanitize_callback' => 'sanitize_hex_color',
[3412] Fix | Delete
)
[3413] Fix | Delete
);
[3414] Fix | Delete
[3415] Fix | Delete
// Setting with no control kept for backwards compatbility.
[3416] Fix | Delete
$wp_customize->add_setting(
[3417] Fix | Delete
'et_divi[secondary_nav_text_color]',
[3418] Fix | Delete
array(
[3419] Fix | Delete
'default' => 'light',
[3420] Fix | Delete
'type' => 'option',
[3421] Fix | Delete
'capability' => 'edit_theme_options',
[3422] Fix | Delete
'transport' => 'postMessage',
[3423] Fix | Delete
'sanitize_callback' => 'sanitize_hex_color',
[3424] Fix | Delete
)
[3425] Fix | Delete
);
[3426] Fix | Delete
[3427] Fix | Delete
if ( 'on' === et_get_option( 'divi_fixed_nav', 'on' ) ) {
[3428] Fix | Delete
$wp_customize->add_setting(
[3429] Fix | Delete
'et_divi[hide_fixed_logo]',
[3430] Fix | Delete
array(
[3431] Fix | Delete
'type' => 'option',
[3432] Fix | Delete
'capability' => 'edit_theme_options',
[3433] Fix | Delete
'transport' => 'postMessage',
[3434] Fix | Delete
'sanitize_callback' => 'wp_validate_boolean',
[3435] Fix | Delete
)
[3436] Fix | Delete
);
[3437] Fix | Delete
[3438] Fix | Delete
$wp_customize->add_control(
[3439] Fix | Delete
'et_divi[hide_fixed_logo]',
[3440] Fix | Delete
array(
[3441] Fix | Delete
'label' => esc_html__( 'Hide Logo Image', 'Divi' ),
[3442] Fix | Delete
'section' => 'et_divi_header_fixed',
[3443] Fix | Delete
'type' => 'checkbox',
[3444] Fix | Delete
)
[3445] Fix | Delete
);
[3446] Fix | Delete
[3447] Fix | Delete
$wp_customize->add_setting(
[3448] Fix | Delete
'et_divi[minimized_menu_height]',
[3449] Fix | Delete
array(
[3450] Fix | Delete
'default' => '40',
[3451] Fix | Delete
'type' => 'option',
[3452] Fix | Delete
'capability' => 'edit_theme_options',
[3453] Fix | Delete
'transport' => 'postMessage',
[3454] Fix | Delete
'sanitize_callback' => 'absint',
[3455] Fix | Delete
)
[3456] Fix | Delete
);
[3457] Fix | Delete
[3458] Fix | Delete
$wp_customize->add_control(
[3459] Fix | Delete
new ET_Divi_Range_Option(
[3460] Fix | Delete
$wp_customize,
[3461] Fix | Delete
'et_divi[minimized_menu_height]',
[3462] Fix | Delete
array(
[3463] Fix | Delete
'label' => esc_html__( 'Fixed Menu Height', 'Divi' ),
[3464] Fix | Delete
'section' => 'et_divi_header_fixed',
[3465] Fix | Delete
'type' => 'range',
[3466] Fix | Delete
'input_attrs' => array(
[3467] Fix | Delete
'min' => 30,
[3468] Fix | Delete
'max' => 300,
[3469] Fix | Delete
'step' => 1,
[3470] Fix | Delete
),
[3471] Fix | Delete
)
[3472] Fix | Delete
)
[3473] Fix | Delete
);
[3474] Fix | Delete
[3475] Fix | Delete
$wp_customize->add_setting(
[3476] Fix | Delete
'et_divi[fixed_primary_nav_font_size]',
[3477] Fix | Delete
array(
[3478] Fix | Delete
'default' => et_get_option( 'primary_nav_font_size', '14' ),
[3479] Fix | Delete
'type' => 'option',
[3480] Fix | Delete
'capability' => 'edit_theme_options',
[3481] Fix | Delete
'transport' => 'postMessage',
[3482] Fix | Delete
'sanitize_callback' => 'absint',
[3483] Fix | Delete
)
[3484] Fix | Delete
);
[3485] Fix | Delete
[3486] Fix | Delete
$wp_customize->add_control(
[3487] Fix | Delete
new ET_Divi_Range_Option(
[3488] Fix | Delete
$wp_customize,
[3489] Fix | Delete
'et_divi[fixed_primary_nav_font_size]',
[3490] Fix | Delete
array(
[3491] Fix | Delete
'label' => esc_html__( 'Text Size', 'Divi' ),
[3492] Fix | Delete
'section' => 'et_divi_header_fixed',
[3493] Fix | Delete
'type' => 'range',
[3494] Fix | Delete
'input_attrs' => array(
[3495] Fix | Delete
'min' => 12,
[3496] Fix | Delete
'max' => 24,
[3497] Fix | Delete
'step' => 1,
[3498] Fix | Delete
),
[3499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function