Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to remove bp1.5 background and header support?


  • imjscn
    Participant

    @imjscn

    I prefer without background and header support in my child them. How to remove them?
    I tried this, but not working
    `function my_dtheme_setup() {
    global $bp;
    define( ‘BP_DTHEME_DISABLE_CUSTOM_HEADER’ , true );
    remove_custom_background();
    }
    add_action( ‘after_setup_theme’, ‘my_dtheme_setup’ );`

Viewing 2 replies - 1 through 2 (of 2 total)

  • imjscn
    Participant

    @imjscn

    Now I added 2 more remove functions, still not working:
    function my_dtheme_setup() {
    global $bp;
    define( 'BP_DTHEME_DISABLE_CUSTOM_HEADER' , false );
    remove_custom_background();
    remove_action('wp_head', 'bp_dtheme_admin_header_style');
    remove_action('wp_head', 'bp_dtheme_custom_background_style');

    }
    add_action( 'after_setup_theme', 'my_dtheme_setup' );


    imjscn
    Participant

    @imjscn

    I found the secret– need to read the commented out text in default functions.php
    This is great!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to remove bp1.5 background and header support?’ is closed to new replies.
Skip to toolbar