Skip to:
Content
Pages
Categories
Search
Top
Bottom

Set default cover image por all users


  • kjhjkhjk
    Participant

    @snorlax775

    I turn off the option that available users to upload their owns profile cover image pictures and then I’m trying to set a default cover image to all users in general, I’m trying with this code as I saw in the documentation but it doesn’t work.

    function your_theme_xprofile_cover_image( $settings = array() ) {
        $settings['default_cover'] = 'http://site.url/to/your/default_cover_image.jpg';
     
        return $settings;
    }
    add_filter( 'bp_before_groups_cover_image_settings_parse_args', 'your_theme_xprofile_cover_image', 10, 1 );

    I’m adding that code in my functions.php and changing the URL image with a real URL image from my site but it doesn’t work.

Viewing 3 replies - 1 through 3 (of 3 total)

  • Venutius
    Moderator

    @venutius

    Hi there, you seem to be using the wrong filter, try bp_before_xprofile_cover_image_settings_parse_args


    kjhjkhjk
    Participant

    @snorlax775

    I resolved it, using a background image url(“”) for the DIV who contains the Profile information, thanks!


    jcfromkc
    Participant

    @jcfromkc

    Can you please post your code for this? I’m struggling with this issue right now.

    Thx, JC>

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Skip to toolbar