Hi, could you get it done? I’m looking for the same thing.
i try to upload a picture to the cover and it says it works but i don’t see it. This is using it natively.
Those are old and dont work very well.
You can do this by hooking into the filter for cover image
function bp_custom_filter_cover_image() {
return 'https://i.ytimg.com/vi/tntOCGkgt98/maxresdefault.jpg';
}
add_filter( 'bp_attachments_pre_get_attachment', 'bp_custom_filter_cover_image' );
i wonder why it does not work on this site but on another site it works via default? even though she has not added a covver picture but others have..
This works great and new image shows – BUT – when I turn off Settings > Buddypress > Disable Cover Image Uploads – no image at all is shown! How do I show the new image AND disable Cover Image uploads? Thanks 🙂
function bp_custom_filter_cover_image() {
return ‘https://i.ytimg.com/vi/tntOCGkgt98/maxresdefault.jpg’;
}
add_filter( ‘bp_attachments_pre_get_attachment’, ‘bp_custom_filter_cover_image’ );
Don’t use the filter.
Overload this template:
...wp-content\plugins\buddypress\bp-templates\bp-nouveau\buddypress\members\single\home.php
And then replace <?php bp_nouveau_member_header_template_part(); ?>
with a call to the image you want to use.