Is it possible to use a generic avatar if the user's email address is not in gravatar? I'd rather not use the colorful avatars, or the goofy ones that it auto generates.

  • Use a generic gravatar where? WordPress.com, for instance, offers a number of different options for undefined gravatars, including a basic silhouette. Implementing such a thing is dependent on the developer of the app.
    – ale
    Jul 10, 2012 at 13:45

1 Answer 1


Gravatar doc specify 'd' parameter for that:

Code exemple in PHP from Gravatar doc:

$grav_url = "http://www.gravatar.com/avatar/" . md5( strtolower( trim( $email ) ) ) . "?d=" . urlencode( $default ) . "&s=" . $size;

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.