I'm building theme from scratch. I want to add "Display Site Title and Tagline" checkbox bellow Site Title and Tagline

enter image description here

I can do that If I add the following code to functions.php

add_theme_support( 'custom-header' );

However if I add that code it automatically adds Header Image Option to customizer enter image description here

How can I add "Display Site Title and Tagline" checkbox without having to display Header Image option in customizer?

What would be proper way of displaying "Display Site Title and Tagline" checkbox without Header Image Options?


1 Answer 1


You can do this by removing the control itself using:

function twentynineteen_customize_register( $wp_customize ) {
add_action( 'customize_register', 'twentynineteen_customize_register' );

But note that this is not allowed in themes in wordpress.org as per the WordPress themes handbook guidelines.

If you are submitting the theme in wordpress.org then you have to add this manually following this documentation https://developer.wordpress.org/themes/customize-api/customizer-objects/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.