#1987 closed defect (bug) (fixed)
Buddypress 1.2 - Removing Custom Image Header
Reported by: | anraiki | Owned by: | |
---|---|---|---|
Milestone: | 1.2.1 | Priority: | minor |
Severity: | Version: | ||
Component: | Keywords: | ||
Cc: |
Description
==Refer in the forum==
http://buddypress.org/forums/topic/bp-12-removing-custom-image-header-code-in-child-theme-did-not-work
==Detail==
The function:
remove_action( 'init', 'bp_dtheme_add_custom_header_support' );
is not working properly.
Change History (4)
Note: See
TracTickets for help on using
tickets.
Since the child theme functions.php loads first you have to add an action that removes the other action before it tries to execute it. Since the core action runs at default priority 10, you just have to hook in at priority 9.
Here is how to do it:
`
function remove_header_support() {
}
add_action( 'init', 'remove_header_support', 9 );
`