// Add "display_title_and_tagline" setting for displaying the site-title & tagline.
$wp_customize->
add_setting( 'display_title_and_tagline',
array
( 'capability' => 'edit_theme_options',
'default' => true,
'sanitize_callback' => array
( __CLASS__, 'sanitize_checkbox'
),
) );
// Add control for the "display_title_and_tagline" setting.
$wp_customize->
add_control( 'display_title_and_tagline',
array
( 'type' => 'checkbox',
'section' => 'title_tagline',
'label' =>
esc_html__( 'Display Site Title & Tagline', 'twentytwentyone'
),
) );
/**
* Add excerpt or full text selector to customizer
*/