Dougal Campbell's geek ramblings

WordPress, web development, and world domination.

Easy Gravatars Plugin

Since so many people seemed to be interested, I went ahead and coded up my new Gravatars plugin: Easy Gravatars. It’s designed to be simple to use — just upload and activate. If you want it to be a little harder, you can visit the plugin’s options page to set the size and rating for the gravatars, and even set the location of a default image, and tweak the CSS a little bit.


I’m going to put it in the WordPress Plugin Repository when I get a chance. Once that’s done, I’ll update this post with the new location.

Update, 2007-11-16: The plugin is now in the repository, and you should now be able to see that version 1.1 is available: Easy Gravatars Plugin

About Dougal Campbell

Dougal is a web developer, and a "Developer Emeritus" for the WordPress platform. When he's not coding PHP, Perl, CSS, JavaScript, or whatnot, he spends time with his wife, three children, a dog, and a cat in their Atlanta area home.
This entry was posted in WordPress, Plugins and tagged , , , , , , , , , , . Bookmark the permalink.

144 Responses to Easy Gravatars Plugin

  1. Pingback: Rocking in Hakata » Blog Archive » Gravatars Are Go

  2. Sarah says:

    Awesome. Playing with it now :)

  3. Thanks for doing this Doug. I just hardcoded it, but I can think of a use for this (friends) so they have it, and have a little control.

  4. Jenny says:

    I still like myAvatars better. But this is a nifty plugin. I hope people enjoy it.

  5. Pingback: Weblog Tools Collection » Blog Archive » WordPress Plugin Releases for 10/25

  6. kOoLiNuS says:

    Thanks !
    I’ll use it right now on two blogs I manage externally from …

  7. ashish says:

    thx buddy for this

  8. shijirou says:

    Hi Doug thanks for posting this but my gravatars wont show in the comments. A little help?

  9. papajoneh says:

    I’ve been looking for this plugin for so long. thanks for bringing it out :)

  10. Pingback: Plugins para Wordpress 25 de Octubre at Corazón de La Mancha

  11. Pingback: BlogBroker » WordPress Plugin Releases for 10/25

  12. worlockt says:

    i also want to add avatar feature on my site..but quite confuse with how to set php settings..anybody suggest me where to add gravator link and how to set default setting .

  13. Eric says:

    What if I want to add the function that calls for the Gravatar in my comments.php? Actually, I tried it but it just gave me an error.

  14. RageX says:

    Was wondering if its possible to do a MyblogLog and Gravatar all in one plugin?

    Like if the email isn’t listed in MyBlogLog it try and display Gravatar.

  15. definately does not work with my theme :)
    I’ll do some research when I’m at home what’s wrong, but atm it looks like it’s incompatible with a Google Analytics plugin I’m running. Switched back to plain simple <img class=”gravatar” src=”” /> 😀

  16. lorenzone92 says:

    Thanks for this plugin!!!

  17. fel3232 says:

    It looks like it is compatible with Google Analytics plugin I am using. Very nice plugin, I will be using it as well. Thanks a million.

  18. Dougal says:

    shijirou: Are you saying that the plugin doesn’t work on your site, or that it’s not displaying your gravatar here? The plugin depends on the get_comment_author_link filter hook. If your template is bypassing the functions that call that filter, it can’t insert the gravatar code. However, pretty much any template that displays the comment author’s name should be using the correct call. If you’re talking about not getting your gravatar to show up correctly, it might not be rated correctly? I only display “PG” or “G” rated gravatars here. Login to Gravatar, and hover over your icon to view the rating. Click the rating to change it, if necessary.

    worloct: With the Easy Gravatars Plugin, all you have to do is activate the plugin — it should automatically add the icons to your comments without any other changes needed.

    Eric: If you want to add gravatars to your template manually, then this isn’t the plugin for you. Use the one from the site.

    RageX: I’ll probably look into adding MyBlogLog functionality one day.

    Christoph: Odd that it would conflict with another plugin like that — Easy Gravatars isn’t doing anything particularly unusual. Are you sure that’s what the problem was?

  19. Richard says:

    how to use it? It must be very cool.

  20. Thanks. I installed it and modified it. It’s great.

  21. S.K says:

    Thanks. You did as promised!

    I have to now look for that “comment_author_link” hook!


  22. shijirou,
    Some thoughts: Make sure you disable wp-cache if you’re using it. then re-emable after you install and test the gravatar plugin (or any plugin for that matter). Also, double check to make sure the email address you have set up for your wordpress user matches the email address you use for your gravatar account.

  23. Pingback: Friki Orgulloso » Blog Archive » Activa Gravatar en tu blog facilmente

  24. Hey… thanks for a great plugin (we’ve implemented it at so y’all come by and comment). Question: While I do have a Gravatar, and it shows up via the comment postings, I do not see my gravatar show up at (see specifically: On the page referenced, you will see a commenter’s gravatar shows up fine, while mine does not. Is this because I am an admin. for that site? Where does your plugin pull its gravatar images from?

  25. Hello Dougal & All –
    Hey… I figured it out. Went to and added a Gravatar for my regular address, AND my admin address at Worked great. So… if you have more than one address, you can set them all up at – Scott

  26. Works great. I modified the CSS to display the gravatars properly on my theme. Thanks so much. I particularly like the ability to use different image sizes for those of us who want smaller gravatars. :) Cheers!

  27. Pingback:

  28. jalansutera says:

    Thank you for this little nice plugin. I can install it with a breeze. Take a look at my blog.

    One question: how to put the avatar a little higher?

  29. yoxx says:

    how to use it? It must be very cool.

  30. Pingback: I’m Gravatar enabled at Missmosta

  31. Dougal says:

    Ulysses: Great job integrating the CSS into your theme!

    jalansutera: Try changing the Span Style to: float:right; margin-left:10px; display:block; margin-top: -1em;

    The “margin-top: -1em” should move it up by one text line.

  32. Andyk says:

    Good work – works a charm on my site!

  33. Pingback: Wordpress Easy Gravatars Plugin

  34. Jay says:

    Wow that was easy. I spent a lot of time with the heavy official plugin but the results weren’t super great. This lightweight plugin did the job in less than 10 minutes, from download to fully-configured. Thanks for making it available.

  35. Pingback: WP Plugin: Easy Gravatars » Blogging News and Reviews // JaypeeOnline

  36. Pingback: Got Gravatars | WordPress Designpraxis

  37. Dougal,
    One of the mods I made to your plugin for my blog was to link the gravatar to the commenter’s website. I bet others might like that option, too. You might want to add it for the next version :)

  38. Pingback:

  39. Mark says:

    Thanks Dougal. I modified it ever so slightly but it works like a charm!

  40. SmockLady says:

    thank you so much for doing this. I used to have gravatars up, but I took them down ages ago because I change my blog according to the seasons and it was too much work to keep up with changing every theme. Now I have my own theme that I just change colors with the seasons and all is good. but adding this plugin made it so much nicer (and quicker) to do.
    I do have one question: my gravatar shows up, my default gravatar shows up for those that don’t have one, but I know I have some commentors that have a gravatar and it is showing my default. do I need to do something different?

  41. aag says:

    Other folks’ gravatars show up but not mine. Hmmmmm…

    WELL! My gravatar shows up here but not on my site. Very odd.

  42. Pingback: David’s Technical Musings » Blog Archive » Easier Gravatars

  43. David Potter says:

    This is a terrific plugin – thanks, Dougal, for doing this. I took the liberty to spruce it up a bit:

    Improved admin page layout, including more verbose descriptions of each of the options.
    Added Reset button to the admin page to delete all the options from the database.
    Added ability to display a border around the gravatar image.
    Display image as a link to the comment author’s web site (thanks to Elaine Vigneault for the idea).

    You can find my changes on my web site at

    What I especially appreciate about this plugin is that I don’t have to change my themes. I still have a little work to do to get the images to display just how I want them, but it’s good enough.

    Thanks Dougal,

  44. Pingback: Gravatar enabled | Bent Corner

  45. AvP says:

    nice plugins,thanks.

  46. Pingback: Wordpress Easy Gravatars Plugin | Webz

  47. n-blue says:

    Thanks for released this. I’m still wieghting whether using or not using Avatar on my sites.

  48. Pingback: n-blue | Gravatars ง่ายนิดเดียว

  49. Pingback: links for 2007-10-30 : 7 seconden

Leave a Reply

%d bloggers like this: