remove custom header functionality from admin menu (4 posts)

  1. Yukon Cornelius
    Posted 5 years ago #

    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?



  2. Michael
    Part-Time Forum Moderator
    Posted 5 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
    Posted 5 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
    Posted 5 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