How to remove Display Text and Text Color from TwentyEleven Custom Header Admin (4 posts)

  1. mtpultz
    Posted 4 years ago #

    I'd like to be able to remove the Display Text and Text Color options from Twenty Eleven's theme options page. Can anyone tell me how to do this? I figured out how to alter the theme options, get rid of the custom background but can't figure out how to do this one.


  2. keesiemeijer
    Posted 4 years ago #

    in functions.php change this:

    define( 'HEADER_TEXTCOLOR', '000' );

    to this:

    define( 'NO_HEADER_TEXT', true );
  3. mtpultz
    Posted 4 years ago #

    Thanks, that's awesome. Where did you look to find that information? Removing that doesn't remove it from the preview, Is that possible too? I did remove the text from the site by altering header.php and I can see where the text is added to the preview in custom-header.php but not anyway to stop it from showing up.

    Thanks again for that

  4. mtpultz
    Posted 4 years ago #

    I did notice that I can before setting define( 'NO_HEADER_TEXT', true ); in my functions.php that if I set the text header not to show up that that persists after uncommenting define( 'NO_HEADER_TEXT', true ); Sooo I sort of solved that. Guess if I look in the DB I could set it to "no" and then it wouldn't show up on reuse of the child theme. Does that sound like a reasonable solution?

Topic Closed

This topic has been closed to new replies.

About this Topic