• Is it possible to set a custom avatar photo if there is no gravatar image available?
    I would like to use the websites logo instead of the grey john doe photo.

Viewing 1 replies (of 1 total)
  • Thread Starter mdaan

    (@mdaan)

    I was able to add it to the discusion section under wp > settings but it is not working because of the UM settings

    Any workaround?

    add_filter( 'avatar_defaults', 'wpb_new_gravatar' );
    function wpb_new_gravatar ($avatar_defaults) {
    $myavatar = 'https://example.com/wp-content/uploads/2017/01/wpb-default-gravatar.png';
    $avatar_defaults[$myavatar] = "Default Gravatar";
    return $avatar_defaults;
    }
Viewing 1 replies (of 1 total)
  • The topic ‘change standard image logo if no gravatar image is available?’ is closed to new replies.