2

Am making a custom theme, and in the Theme Customizer, will it be possible to change that checkbox under Site Title to something like "Display Site Title instead of Logo"?

(i have removed that tagline field and added an image upload field for Logo)

or, remove that checkbox from there? which one is easier?

thanks!

  • okay, i decided to remove that checkbox, used $wp_customize->remove_control('display_header_text'); thanks to wordpress.stackexchange.com/a/62871/92351 – Saeed Salam Apr 14 '16 at 7:46
  • 1
    please, if you have a solution while the question itself is not a duplicate, just post it as an answer and accept it – Mark Kaplun Apr 14 '16 at 8:04
0

You will need to de-register that control. It will look like this:

/**
 * Remove parts of the Options menu we don't use.
 *
 * @param WP_Customize_Manager $wp_customize Customizer manager.
 */
function de_register( $wp_customize ) {
    $wp_customize->remove_control('display_header_text');
}
add_action( 'customize_register', 'de_register', 11 );

For more information, this Theme Customization is a good start.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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