Find Answers and Get Support › Forums › Gwangi – PRO Multi-Purpose Membership, Social Network & BuddyPress Community Theme › Website Setup › Pages › Profile Cover Image
- This topic has 3 replies, 2 voices, and was last updated 6 years, 5 months ago by
Themosaurus.
-
AuthorPosts
-
@themosaurus
- 1 Topics
- 1675 Posts
Hi @hittekk,
We’re sorry for the late reply. We usually try to give a response in one business day. So, we really thank for your patience.
Yes, you can change the default cover image for the user profile. The following PHP code snippet should do the trick:
/** * Change the settings for the BuddyPress cover image. * * @param array $settings The array of default settings for the BuddyPress cover image. * * @return array The array of settings for the BuddyPress cover image. */ function gwangi_custom_change_xprofile_cover_image_settings( $settings = array() ) { $settings['default_cover'] = 'https://source.unsplash.com/3-mj98Da3vA/1850x550'; return $settings; } add_filter( 'bp_before_xprofile_cover_image_settings_parse_args', 'gwangi_custom_change_xprofile_cover_image_settings', 20, 1 );
To add this code snippet to your site, we recommend that you use a the Code Snippets plugin (https://wordpress.org/plugins/code-snippets/). If you have never activated this plugin, please read the following post:
Finally, please don’t forget to change the example URL between single quotation marks for the URL to your new default cover image. The ideal ratio for this picture is 1850x550px.
We hope this will help. ?
Best regards,
October 7, 2018 at 19:27 #2681 -
AuthorPosts
Hi there,
This topic has been inactive for a while now so we will be closing it to keep the forum tidy. Don't hesitate to create a new topic if you still need help and we'll be glad to help you!
Best regards,
The Themosaurus team.
The topic ‘Profile Cover Image’ is closed to new replies.