1 entry in
ay_opacity', array( 'section' => 'header_image', 'label' => esc_html__( 'Overlay Opacity', 'tripp' ), 'description' => esc_html__( 'The header background overlay opacity.', 'tripp' ), 'input_attrs' => array( 'min' => 0, 'max' => 100, ), 'marks' => array( 0 => 0, 25 => 25, 50 => 50, 75 => 75, 100 => 100, ), 'active_callback' => 'tripp_customizer_is_header_overlay_enabled', ) ) ); // Header -> Text Mode. $wp_customize->add_setting( 'header_text_mode', array( 'default' => '', 'transport' => 'postMessage', 'sanitize_callback' => 'tripp_customize_sanitize_select', ) ); $wp_customize->add_control( 'header_text_mode', array( 'section' => 'header_image', 'label' => esc_html__( 'Text Mode', 'tripp' ), 'description' => esc_html__( 'Text color for the header titles. Choose "Auto" to automatically adjust it depending on your site color scheme.', 'tripp' ), 'type' => 'select', 'choices' => array( '' => esc_html__( 'Auto', 'tripp' ), 'dark' => esc_html__( 'Dark', 'tripp' ), 'light' => esc_html__( 'Light', 'tripp' ), ), 'active_callback' => 'tripp_customizer_is_header_text_mode_enabled', ) ); } add_action( 'customize_register', 'tripp_customizer_register_header_settings', 20 );