Powered By Blogger

Wednesday, December 4, 2019

header cover image got members detail and group details page in buddypress when override default view in theme

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-parent-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 );




REF : https://buddypress.org/support/topic/css-causing-cover-image-to-disappear/

1 comment: