WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How to remove "Header Text" section of "Header" menu in a Twenty Eleven child? (3 posts)

  1. JonasBang
    Member
    Posted 1 year ago #

    How to remove the "Header Text" section of the "Header" menu under "Appearance" in a Twenty Eleven child theme?

    I have hard removed the header text in my child theme, so I would like to remove the "Header Text" section of the "Header" menu too, as it is no longer an option to select whether to show or hide the header text.

    I have tried this, but without luck, as the "define( 'HEADER_TEXTCOLOR', '000' );" is not in Twenty Eleven functions.php:
    http://wordpress.org/support/topic/how-to-remove-display-text-and-text-color-from-twentyeleven-custom-header-admin?replies=4

    Anyone know how to remove this menu section?
    Or how to individually remove the 3 menu items "Header Text", "Text Color" and "Reset Text Color"?

    Thanks,
    Jonas

  2. alchymyth
    Forum Moderator
    Posted 1 year ago #

    for functions.php of the child theme:

    add_action('after_setup_theme','twentyelevenchild_customize_appearance_header_options');
    function twentyelevenchild_customize_appearance_header_options () {
    add_theme_support( 'custom-header', array(
    		'header-text' => false
    	) );
    }

    http://codex.wordpress.org/Custom_Headers

  3. JonasBang
    Member
    Posted 1 year ago #

    Amazing, works like a charm.
    Thanks a bunch, really appreciate it.

    Br,
    Jonas

Topic Closed

This topic has been closed to new replies.

About this Topic