Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 1 replies (of 1 total)

  • cappy2
    Participant

    @cappy2

    I had the same problem. I could upload an cover image but got the warning “For better results, make sure to upload an image that is larger than 0px wide, and 225px tall. ”

    After entering the following code in /wp-content/plugins/bp-custom.php i could i could upload the image. but it is still not showing.

    function your_theme_xprofile_cover_image( $settings = array() ) {
            $settings['width']  = 640;
            $settings['height'] = 300;
    	$settings['default_cover'] = '/wp-content/uploads/2014/12/blog_header_640x300.jpg';
     
        return $settings;
    }
    add_filter( 'bp_before_xprofile_cover_image_settings_parse_args', 'your_theme_xprofile_cover_image', 10, 1 ); // for the members Cover Images
    add_filter( 'bp_before_groups_cover_image_settings_parse_args', 'your_theme_xprofile_cover_image', 10, 1 ); // for the groups Cover Images

    To test if i can show an cover image i did enter the following CSS code with Firebug and the cover image will show. Unfortunnaly not the one i uploaded 🙁

    #buddypress #header-cover-image
    height: 300px;
    width: 640px;
    background-image: url('/wp-content/uploads/2015/12/blog_header_640x300.jpg');

    I think i experience this problems because i’m using a child theme, but not sure for that.
    See my post: Cover image in child theme

Viewing 1 replies (of 1 total)
Skip to toolbar