Skip to:
Content
Pages
Categories
Search
Top
Bottom

Custome Header Support – Remove Action

  • Avatar of fostertime
    fostertime
    Participant

    @fostertime

    I am trying to use the

    remove_action( 'init', 'bp_dtheme_add_custom_header_support' );

    In my child theme functions.php. However it does not remove the header bp-default header.

    I’ve cleared cache and tried in multiple browsers. So, anyone else having this issue?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Avatar of Bowe
    Bowe
    Participant

    @bowromir

    same here.. no solution found so far..

    Avatar of Leia Scofield
    Leia Scofield
    Participant

    @leiascofield

    Likewise. Tried setting a priority on the remove_action to no avail.

    WP 2.9.1, BP 1.2

    Avatar of andystaple
    andystaple
    Participant

    @andystaple

    I’m at the same problem. Followed the instructions in the functions.php and put that line in my child themes functions.php and nothing changed at all.

    Anyone find a way around this without editing the bp-defaults functions.php ?

    Avatar of Leia Scofield
    Leia Scofield
    Participant

    @leiascofield

    Andy — Add this to your child functions.php:

    function remove_header_support() {

    remove_action( ‘init’, ‘bp_dtheme_add_custom_header_support’ );

    }

    add_action( ‘init’, ‘remove_header_support’, 9 );

    (Hat tip: MrMaz)

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

You must be logged in to reply to this topic.