1

I want to remove the header text option from WordPress backend, under the Appearance->Header page at the bottom.

Screen Dump

Is there any hook or filter to remove this option from the backend?

Thanks!

0

2 Answers 2

3

This is controlled by theme as part of custom header feature declaration.

Something like this should disable that part of the feature (you might need to adjust, depending on specific theme used):

add_action( 'after_setup_theme', function () {
    add_theme_support( 'custom-header', array( 'header-text' => false ) );
} );
1
  • I am using Genesis Theme. Adding 'header-text' => false, to the add_theme_support( 'custom-header', $args ); did the trick. $args = array( 'flex-width' => true, 'width' => 980, 'flex-height' => true, 'height' => 61, 'header-text' => false, 'default-image' => get_template_directory_uri() . '/images/header.jpg', ); add_theme_support( 'custom-header', $args );. Many thanks!
    – Atif
    Jun 11, 2014 at 19:36
0

Just use the below code inside the "customize_register"

$wp_customize->remove_control( 'header_textcolor' );

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.