Skip to:
Content
Pages
Categories
Search
Top
Bottom

Default Profile Photo

  • @offworld21

    Participant

    Hi, is there a way to enable a default profile photo on newly created user accounts? At the moment I’m getting a ‘photo missing’ placeholder, which is not ideal: http://dev.nexusmediacreations.com/Profile_pic.PNG

    I’m using WordPress 4.9.6 running Boss. Child Theme 2.4.3 and BuddyPress 3.1.0.

    Many thanks in advance.

    Wil

Viewing 3 replies - 1 through 3 (of 3 total)
  • @venutius

    Moderator

    Take a look at this track ticket:

    https://buddypress.trac.wordpress.org/ticket/7737#ticket

    Could you give that a try?

    @venutius

    Moderator

    Just tested it, create a bp-custom.php in your plugins directory and add the following:

    define ( 'BP_AVATAR_DEFAULT', 'http://example.com/default-avatar.jpg' );
    define ( 'BP_AVATAR_DEFAULT_THUMB', 'http://example.com/default-avatar-thumb.jpg' );
    
    add_filter( 'bp_core_fetch_avatar_no_grav', '__return_true' );

    @offworld21

    Participant

    Hi Venutius,

    Thank you so much for the quick response, I’ve tried your suggestion and it works perfectly!

    Thanks again, all the best

    Wil

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