WordPress.org

Ready to get started?Download WordPress

Forums

remove custom header functionality from admin menu (4 posts)

  1. Yukon Cornelius
    Member
    Posted 3 years ago #

    Hi,
    I'd like to remove the custom header area from the admin menu. I used to have a little snippet of code I dropped into functions.php, but I have lost it.

    Can anyone point me in the right direction?

    Cheers,

    Jimmmy

  2. alchymyth
    The Sweeper & Moderator
    Posted 3 years ago #

    for instance, in Twenty Ten, this code in functions.php initializes the custom header area in admin:

    // Add a way for the custom header to be styled in the admin panel that controls
    	// custom headers. See twentyten_admin_header_style(), below.
    	add_custom_image_header( '', 'twentyten_admin_header_style' );

    check if your theme has a similar code in functions.php - and remove it.

  3. florushj
    Member
    Posted 3 years ago #

    I have a child functions.php file for my child theme. How do I completely remove this function? (Without altering the original functions.php file of the twentyten theme?)

    So basically I want the functionality and back-end appearance to be totally gone..

  4. Yukon Cornelius
    Member
    Posted 3 years ago #

    Hey Alchymyth, thanks for the reply: didn't see it until now.

    Turns out the snippet I was looking for was just a buddypress function

    define( 'BP_DTHEME_DISABLE_CUSTOM_HEADER', true );

    which I dropped into bp-custom. Sorry, it was a long day;-) Thought I'd share anyway, in case it helps anyone.

    @florushj you should do what alchymyth says above. if you don't want to completely remove it, just comment it out.

Topic Closed

This topic has been closed to new replies.

About this Topic