Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: Buddypress Cover Photo Does Not Save

@pare81

Participant

Hi Guys,

I’ve found an solution.

For childthemes you have to check the following infos:

BuddyPress Cover Images

Here is what I have paste to my child themes functions.php, and now the cover image works:

function your_theme_cover_image_css( $settings = array() ) {
    /**
     * If you are using a child theme, use bp-child-css
     * as the theme handel
     */
    $theme_handle = 'bp-child-css';

    $settings['theme_handle'] = $theme_handle;

    /**
     * Then you'll probably also need to use your own callback function
     * @see the previous snippet
     */
     $settings['callback'] = 'bp_legacy_theme_cover_image';

    return $settings;
}
add_filter( 'bp_before_xprofile_cover_image_settings_parse_args', 'your_theme_cover_image_css', 10, 1 );
add_filter( 'bp_before_groups_cover_image_settings_parse_args', 'your_theme_cover_image_css', 10, 1 );
Skip to toolbar