Support only during business hours : Monday to friday, from 8:30 am – 5:30 pm CEST

Due to the decrease in our staff due to vacations, our response time may be longer.

Be sure we're doing our best to manage your topic as soon as possible.

Remove background cover image default on BP profiles

This topic is resolved
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • alex
    Participant
    • 81 Topics
    • 259 Posts
    @abourne

    All BP profiles have default cover image. How to change this default?

    Themosaurus
    Keymaster
    Themosaurus Support
    • 1 Topics
    • 1675 Posts
    @themosaurus

    Hi @abourne,

    Do you wish to change the default cover image? Or maybe completely remove the display of the cover image for all member profiles?

    Thank you for your reply.

    Best regards,

    alex
    Participant
    • 81 Topics
    • 259 Posts
    @abourne

    change the default cover image

    Themosaurus
    Keymaster
    Themosaurus Support
    • 1 Topics
    • 1675 Posts
    @themosaurus

    Hi @abourne,

    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:

    Adding Custom PHP Without Changing Your Child Theme

    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,

    alex
    Participant
    • 81 Topics
    • 259 Posts
    @abourne

    Thanks. I added this:

    function gwangi_custom_change_xprofile_cover_image_settings( $settings = array() ) {
        $settings['default_cover'] = 'https://www.gymn.com.au/wp-content/uploads/2018/10/male-athlete-powerlifter-PGXFJJD-3.jpg/1850x550';
        return $settings;
    }
    add_filter( 'bp_before_xprofile_cover_image_settings_parse_args', 'gwangi_custom_change_xprofile_cover_image_settings', 20, 1 );

    For all existing and all new profile registrations, the cover photo appears as attached. It is not the provided url default image.

    Please help figure out the problem.

    Themosaurus
    Keymaster
    Themosaurus Support
    • 1 Topics
    • 1675 Posts
    @themosaurus

    Hi @abourne,

    Your image url seems to be wrong. You entered this:
    https://www.gymn.com.au/wp-content/uploads/2018/10/male-athlete-powerlifter-PGXFJJD-3.jpg/1850×550

    And this one seems to work:
    https://www.gymn.com.au/wp-content/uploads/2018/10/male-athlete-powerlifter-PGXFJJD-3-1850×550.jpg

    In addition, I notice that your image is very high. I advise you to reduce its size (2000px maximum) and transfer to the online application “Tinypng” (https://tinypng.com/). This will considerably reduce his weight.

    Hope this will help you :).

    Regards,

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘Remove background cover image default on BP profiles’ is closed to new replies.

Troubleshooting Demo Imports

You're trying to setup your theme but you're experiencing errors when importing the demo content? Or you've just followed the setup guide but your website doesn't look exactly like our demo? These are common issues for which you can find easy and quick fixes.

Happy With our Support So Far?

Feel free to review our theme on Themeforest! It helps us making our products more known to new potential customers, which allow us more time to improve the quality and develop new features. #SharingIsCaring ❤️

Discover MatchPress

Skip • Like • Super-Like

Add powerful matching features like Member likes, skips, super likes, conditional private messaging and much more.

Setup Your Cera or Gwangi powered Community Website and Turn it into an iOS and Android App

15% discount for Cera users

To unleash the full power of your Cera or Gwangi theme, we have partnered with the Zipline team. Your community website can now be fully setup and turned into your very own custom app for iOS and Android.

Whether you've newly acquired the theme or already got your site up and running, Zipline got you covered. And we got you an incredible discount.

Holiday, Weather & Festive effects
to pimp your WordPress Site