Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: Problem or bug beetwen BP Cover Image and buddypress.css ?

@frappi

Participant

Hello r-a-y, thanks for your help.

I’ve try the workaround by adding the following lines into function.php but the problem persist. I’m not familiar with BP and I hope my test is correct.

 
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