Skip to:
Content
Pages
Categories
Search
Top
Bottom

Default gravatar not working correctly

  • Avatar of generalmacbeth
    generalmacbeth
    Participant

    @generalmacbeth

    I’m overriding the default gravatar used with the following code in my bp-custom.php file.
    `
    function set_default_member_avatar($url) {
    return ‘http://localhost:8888/wp-content/themes/Ready+Willing/_/images/people_Thumb.png’;
    }
    add_filter(‘bp_core_mysteryman_src’, ‘set_default_member_avatar’);
    `

    Instead of overriding the url, it just adds on to it, creating a broken link. E.G.
    `http://www.gravatar.com/avatar/1c17f57221db736d9ee7bb2cd1c92c22?d=http://localhost:8888/wp-content/themes/mytheme/_/images/people_Thumb.png&s=150&r=G`

    What am I doing wrong here?

You must be logged in to reply to this topic.