• WordPress
    • Why WordPress
    • WordPress Support
    • WordPress Websites
    • WordPress Web Hosting
  • Our Projects
    • WPAnnex
    • EmmanuelPress
    • ChrisCree.TV
    • New Media Profit Path
  • Get Your Domain

SuccessCREEations, Inc.

Guiding Your Business to Increased Income though Effective New Media Systems Online

  • Home
  • About
    • Talk About Us
    • Chris Cree
    • Examples of our Work
      • Dr. Mo – Learn to Win!
      • Allstate Insurance
      • Halo Models & Talent Group
      • HighCallingBlogs.com
      • MyHuntingandFishing.com
      • BuzzFoto
  • Services
    • Social Media
    • Websites
      • WordPress Support
      • WordPress Web Hosting
      • Domain Names
  • Blog
    • Archives
    • Site Map
    • Comment Policy
    • Tag Cloud
  • Contact
  • Topics
    • Blogging
    • Social Media
    • WordPress
      • Tips
      • Themes
      • Plugins
    • SEO
    • Tech Tips
    • Personal Growth
    • Misc
You are here: Home / WordPress / Tips / How to Use Gravatars in WordPress and Beyond

How to Use Gravatars in WordPress and Beyond

April 17, 2009 by Chris 74 Comments
Tweet

We all like to see pictures of ourselves. It’s part of how we’re wired. We’re visual creatures. Somehow just seeing an image of someone else makes it easier for us to communicate with them and have a stronger connection.

Not only that, but using a consistent image to represent yourself around the web can help improve your branding. Using a Gravatar is an easy way to do that. Easy and free (I like free!)

gravatar logoThe name Gravatar came from Globally Recognized Avatar. An avatar is simply an icon or an image that represents a computer user. Using Gravatars is really very simple. Since version 2.5, Gravatar support has been built into the core WordPress functionality.

And even though the service is owned by Automattic (the same company that develops WordPress) it is fairly easy to implement in all sorts of other platforms too! Check out the Gravatar Implementation page to see how to use Gravatars with platforms like Blogger, MovableType, Drupal, Joomla, LiveJournal, Ruby on Rails, Cold Fusion, Pearl, Python, ASP… And the list goes on.

Gravatar as a Commenter

The easiest way to use Gravatars is as you are commenting on Gravatar enabled blogs. Simply go to the Gravatar website and click the link at the top to Sign Up.

The site will ask for your email address which you will have to validate. Once you do you can add your image from either your computer’s hard drive, web cam, or a web URL where your image is already online.

One thing to keep in mind is that you will want to crop your image to be square, which you can do after uploading the image, to keep it from distorting when it is displayed as a square image around the web.

Your Gravatar will then be married to your email address so that whenever you use that address on any Gravatar enabled web site your image will be shown automatically. That’s all you have to do. Piece of cake.

If you have multiple email addresses, you can even set up a different image for each one. Then choosing which image to use is as easy as entering a different email address.

Displaying Gravatars in Your Blog’s Comments

Displaying Gravatars in your blog’s comments is easy too with WordPress versions 2.5 and later. The first thing you will want to do is make sure they are turned on.

To do this click on the “Settings” menu and then choose the “Discussion” option.
Click image for larger view

Then scroll down the page to the “Avatars” section to adjust your settings.

Click image for larger view.

Here you can turn your Avatars on or off, set what rating to show and choose the default Gravatar to display on your blog. The three “Generated” default Gravatars will generate a random image based on the email address the user inputs.

Don’t forget to click the “Save Changes” button at the bottom after you have the settings the way you want them.

If your WordPress theme is Gravatar enabled then that’s all you need to do and you are good to go.

Getting Technical

(The rest of the post gets into coding and php. If you are not familiar with all that, feel free to stop reading and don’t feel bad. Most users won’t need to mess with any of this stuff anyway.)

WordPress will automatically call up the Gravatar as part of the wp_list_comments function. For example, if you wanted to just list comments (without trackbacks or pingbacks) with a Gravatar size that’s 48px square your comments.php file should have the following code in it:

<?php wp_list_comments('type=comment&avatar_size=48'); ?>

You can adjust the size to fit your theme or omit the type if you like.

Displaying Gravatars for Multiple Authors

If you have a blog with more than one author you can display the author’s gravatar as an easy way to let your audience know which one wrote any given post.

There are a couple of different ways you can do this but they both use the get_avatar WordPress function.

Since Gravatars are tied to email addresses you can use the author’s email to display the Gravatar with this bit of php code in your loop:

<?php echo get_avatar( get_the_author_email(), '80'); ?>

Where the number ’80′ is the size of the Gravatar. Simply change that out with whatever size fits your theme.

You can also use the author’s ID number that is assigned by WordPress in the get_avatar function instead of the author’s email if you’d rather. Here’s how that code looks:

<?php echo get_avatar( get_the_author_ID(), '80'); ?>

Either way should give you the same results.

Styling with CSS

The other piece needed to display Gravatars correctly, whether in the post area or in the comments is some styling. WordPress automatically adds a couple of classes to the html output to make things easier for you.

These classes are .avatar and .avatar-$size where “$size” is whatever avatar size you have set to display. So in the examples above the second class would be .avatar-48 and .avatar-80 respectively.

Using different size avatars for the author images in the posts and for the comment Gravatars can be one easy way to style them differently because of the different classes that WordPress assigns to the different classes.

Bottom Line

The bottom line is Gravatars are a very simple way to add a bit of personalization to your blog that can help foster conversation and build relationships.

With WordPress it’s nearly automatic these days and because the Gravatar system is so simple it is even easy to impliment in other applications beyond WordPress. Since it Gravatars are so easy to use, using them seems like a no-brainer to me.

Related Posts with Thumbnails
Print Friendly

SuccessCREEations.com runs on the Genesis Framework

Genesis Framework

The Genesis Framework empowers you to quickly and easily build incredible websites with WordPress. Whether you're a novice or advanced developer, Genesis provides the secure and search-engine-optimized foundation that takes WordPress to places you never thought it could go. It's that simple - start using Genesis now!

Check out these incredible features and wide selection of designs. With automatic theme updates and world-class support included, Genesis is the smart choice for your WordPress website or blog.

Or even Become a StudioPress Affiliate yourself.

Filed Under: Tips Tagged With: Gravatars, Social Media, WordPress

Comments

  1. Bruce > The Hockey Writers says:
    April 17, 2009 at 4:44 pm

    We have a blog with 34 writers so having a face on them is important. We are just now implementing the use of Gravatars throughout the site and are very pleased with the service.

    Reply
    • Chris says:
      April 18, 2009 at 11:49 am

      Bruce, with a mulit-author blog like yours, Gravatars are a great way to help your audience connect with your authors.

      Reply
  2. Robb says:
    April 18, 2009 at 2:59 pm

    Personally, I like the Gravatar concept, and have implemented it on a few of the blogs my customers have recently had tweaked.

    Perhaps I’m not the sharpest knife in the drawer, but I found setting up a Gravatar (on their site, not on the blogs) was a bit of a pain, as was finding my Feedburner ID when setting up there. I guess like most things it gets easier with practice…

    Thanks for sharing these types of tips, very handy stuff :)

    Reply
  3. Timon Weller says:
    April 19, 2009 at 2:28 am

    Gravatars are an awesome addition to any wordpress comment system. I find it encourages way more comments and creates way more professional interaction.

    Reply
  4. Liftchair says:
    April 20, 2009 at 8:30 am

    I recently installed Gravatar here on the Laughing Squid blog. Gravatars are those cool avatars you see next to people’s comments. They help you maintain a consistent identity across blogs by providing a global avatar. They are really simple to setup and use.

    Reply
  5. Decor South Furniture says:
    April 21, 2009 at 4:38 pm

    thanks for the gravatar tip!

    testing out our new gravatar with this comment (fingers-crossed).

    Reply
  6. almir says:
    April 21, 2009 at 11:49 pm

    i totally agree with you by using a gravatar its a better way to communicate with someone with a more personal level as when you see their picture its like your showing more trust while the people that don’t reveal their identity are more of the shady individuals

    Reply
  7. Cool Gifts says:
    April 22, 2009 at 2:11 pm

    Great tutorial. Using a gravatar is a great way to brand yourself and your business. I will definitely be adding an image in my wordpress admin.

    Reply
  8. Jared Stenzel says:
    April 22, 2009 at 8:34 pm

    Got mine up :D It makes our comments look so much less like spam, even if they are. I’m going to be looking at getting a picture of myself in my comments soon just to make them look even better. Thanks for the tutorial!

    Reply
  9. Cheap cars says:
    April 23, 2009 at 2:44 am

    This is very nice post on, “how to use gravatars on wp blog”.

    ==> Peter

    Reply
  10. Lisa says:
    April 23, 2009 at 11:52 pm

    I’d been wondering how people got those cute little pics by their comments. I followed the link and signed up. You are officially the first sight I’ve commented on with my new gravatar.

    Reply
  11. 3d en güzel oyunlar says:
    April 24, 2009 at 12:07 am

    I recently installed Gravatar here on the Laughing Squid blog. Gravatars are those cool avatars you see next to people’s comments. They help you maintain a consistent identity across blogs by providing a global avatar. They are really simple to setup and use.

    yes…

    Reply
  12. Darlington Web Design says:
    April 25, 2009 at 8:15 am

    Thanks, looks easy when you know how! I think I’ll be adding them to my work blog, although there’s probably not that many users who actuially have one!

    Reply
  13. Jack Smith says:
    April 25, 2009 at 2:08 pm

    I accidently stumbled across your blog but I liked it a lot. Keep up the good work.

    Reply
  14. SEO Consultant India says:
    April 25, 2009 at 2:10 pm

    It was great to go through the stuff posted on your blog. Look forward to more useful posts in future.

    Reply
  15. Gume says:
    April 26, 2009 at 4:36 am

    Man, you have great tips for internet marketing. I especially liked your Twitter post a couple of days back.

    Reply
  16. Brian says:
    April 26, 2009 at 11:26 am

    Very cool idea. I find that depending upon the blog i post to, i may want to use a different image – based on whether it’s for business or personal. I assume we can setup more than 1 gravatar?

    Reply
  17. Music News says:
    April 27, 2009 at 6:25 am

    Gravatars are funny but I think that they’re only useless gimmicks. It’s about the content (also in the comment for a blog) and for that reason it should be more important to do something in that case!

    Reply
    • dental products says:
      May 25, 2009 at 9:06 pm

      The author have stated the advantages of using gravatar and I don’t think its a kind of useless gimmicks. I hope you’ve got the idea.

      Reply
  18. Vlad says:
    April 27, 2009 at 3:53 pm

    I especially like using Gravatars because they don’t rely on a cookie installed on your PC, but simply on your registered email address.
    If you registered on Gravatar with an email for fun and another email for business, just comment using that email and the Gravatar will be there. No cookies, ips and other methods of tracking…

    Reply
  19. Amit says:
    April 27, 2009 at 4:50 pm

    This is something I need to implement for all our blogs.

    Reply
  20. Talia Phillips says:
    April 28, 2009 at 6:28 am

    This is something I haven’t had a chance to implement in my blogs yet either. It definitely makes sense as far as branding goes and they do make everything instantly more personal and us bloggers more personable.

    Reply
  21. forex says:
    April 28, 2009 at 10:10 am

    Maybe the question is stupid, but are the those Gravatars are available in MU Wordpres blogs

    Reply
  22. Jacksonville Realtor - Brad Officer says:
    April 29, 2009 at 5:41 pm

    Finally got my Gravatar set up thanks to some pushing from Chris. Glad to see me!

    Reply
  23. musica says:
    April 30, 2009 at 2:48 pm

    Gravatar is a cool adition for blogs

    Reply
  24. Roselyn | Nuviderm Tattoo Removal says:
    May 1, 2009 at 8:10 am

    I’ve been wanting to see my Gravatar but I haven’t figured out how to get one. I’m glad I found this blog. Thank you for the very useful tips and complete guide. Hopefully I have Gravatar the next time I visit here :)

    Reply
  25. Travis says:
    May 1, 2009 at 11:35 pm

    Good information. I was going crazy not being able to figure out how to change my gravatar!

    Thanks!

    Reply
  26. Inchirieri Masini says:
    May 2, 2009 at 2:42 pm

    gravatars are indeed great and i love mine. They connect words with images. My avatar is as you can see a car :)

    Reply
  27. Inchirieri Masini says:
    May 2, 2009 at 2:43 pm

    Sorry i misspelled my email now it should appear

    Reply
  28. Vasilescu says:
    May 4, 2009 at 7:03 am

    Good and nice explanation. I tried once to change gravatars to my wordpress, but now with these explanations is much easier. Thanks

    Reply
  29. Vanessa says:
    May 4, 2009 at 9:20 am

    I too have never heard of gravatars before this post. I can see how it provides a more personal commenting system.

    Reply
  30. Jenna says:
    May 5, 2009 at 7:09 am

    i love gravatars, it give more colors to blogs :)

    Reply
    • Troy says:
      July 17, 2010 at 4:26 pm

      And having a very beautiful image like yours for your gravatar is always good too!

      Reply
  31. Aldohas Personal Development says:
    May 10, 2009 at 7:09 pm

    I’m using wp-gravatar plugin
    good enough

    Reply
  32. as400 says:
    May 12, 2009 at 2:22 am

    good post, but I tend to just stick to the default avatar!

    Reply
  33. John Thomson / Web Hosting Art says:
    May 12, 2009 at 11:39 am

    Gravatars, as very clearly mentioned, are giving to content a more personalized touch. A 48px × 48px jpeg graphic file is enough to offer the sense that we are interacting with another human. I think that Gravatars are one of those little, simple inventions that enhance the communication and interaction between Internet users.

    Reply
  34. Shanghai Blog says:
    May 16, 2009 at 2:29 am

    I’m glad I don’t need to use wp-gravatar anymore! The cartoons also look good (although some people might not like them on their site if it doesn’t fit with the theme).

    Reply
  35. Paulo Pires says:
    May 16, 2009 at 6:21 am

    Excellent Post. Thanks

    Reply
  36. Bruce Means says:
    May 16, 2009 at 9:29 am

    Just wanted to say thanks for the useful information.

    Reply
  37. lidagazeteler says:
    May 18, 2009 at 11:59 am

    WordPress’te kendi avatarlar?m?z? kullanabilir miyiz? WordPress’in böyle bir özelli?i olsa çok daha güzel olur bence.

    Reply
  38. MR Valeting says:
    May 18, 2009 at 3:46 pm

    Gravtars are great for blogs. I noticed that vivvo (publishing CMS) uses gravtars too so I guess the word is spreading fast.

    Reply
  39. Shaon says:
    May 19, 2009 at 2:54 am

    Thanks for the tutorial. This solved a issue for me in my blog :)

    Reply
  40. WebMaster says:
    May 20, 2009 at 3:11 am

    Great tutorial. Using a gravatar is a great way to brand yourself and your business. I will definitely be adding an image in my wordpress adminc yes

    Reply
  41. yasinta says:
    May 21, 2009 at 6:01 am

    I use gravatar too. It’s so easy and practical. I can change my gravatar any time I want, and it turns out automatically each time we leave comment. Support narcism, lol…. !

    Reply
  42. chin surgery says:
    May 21, 2009 at 11:31 am

    gravatars is worth much more than I paid. gravatars did exactly what you said it does. It fits our needs perfectly.

    Reply
  43. Greg says:
    May 24, 2009 at 6:38 am

    Thank you for your tutorial. I was trying to implement Gravatar on my old wp blog, but failed. Recently I have updated to wordpress 2.7.1 and was surprised to find Gravatar as a built in function.

    Reply
  44. Eric says:
    May 27, 2009 at 6:13 pm

    Well, this is certainly a reason for me to upgrade our WordPress. Even if the public doesn’t do it, it at least makes it more fun for employees who post. Or for the public to see what the employees look like. I love the idea.

    Reply
  45. Foodnut says:
    May 28, 2009 at 12:16 pm

    Don’t forget to first make JPG, GIF, or PNG image that your gravatar will be, before you setup a new gravatar. Keep the size under 10k

    Reply
  46. Drifin says:
    June 1, 2009 at 11:43 am

    Never heard about gravatar before this post. But it sound like something very fun and give more colours to a blog. Thanks for the knowledge.

    Reply
  47. Lifted trucks says:
    June 2, 2009 at 2:26 am

    Yeah i am already used my gravatar…

    Gravatars are indeed gr8 nd i love mine… They connect words with images…

    Reply
  48. jlbraaten says:
    June 4, 2009 at 2:56 pm

    You’d think more people that posted comments would have gotten Gravatars given the nature of your post.

    Reply
  49. Yuva says:
    June 5, 2009 at 4:31 am

    Can we use the favicon as the Gravatar. Will it work?

    Reply
  50. Frugal Shopping Ideas says:
    June 6, 2009 at 1:20 am

    The default gravatars look pretty bad. I’d prefer users have their own custom gravatars.

    Reply
  51. Trail Running Blog says:
    June 6, 2009 at 1:21 am

    Gravatars are a great way for commentors feel like they have more customization and uniqueness.

    Reply
  52. Adam Alfia says:
    June 10, 2009 at 1:29 pm

    I recently setup my Gravatar for my work e-mail and have enjoyed the ease of functionality across the various Gravatar enabled sites. It’s a wonderful centralization/implementation of a universal electronic necessity — to have a picture of one’s self on hand at any time!

    Reply
  53. Marton Criação says:
    June 10, 2009 at 2:49 pm

    Useful information. Previously I had problems with this issue.

    Reply
  54. Fotoframkallning says:
    June 11, 2009 at 5:35 pm

    Oh, that was a really nice service that gavatar provides. I’m really going to use that on my main blog that for sure and going to use your 100% guide to get it to work!

    Thanks for nice guides!

    Reply
  55. Gochi Juice says:
    June 14, 2009 at 12:33 pm

    I activated the plug-in on my blog, but unfortunately, it doesn’t look all that great…. :o ( I use a blog theme that has a comic type comment that the Gravatar picture overlaps and doesn’t have great appeal…. But, my picture is going to spice up my comments on others blogs that us Gravatar!!!!

    Thanks again for the great informative post….

    Reply
  56. Lenny says:
    June 16, 2009 at 12:29 pm

    I really like the idea of Gravatars. I’m glad that Automattic is providing such a great service that it can be incorporated into projects outside of WordPress as well.

    Reply
  57. WebMaster says:
    June 18, 2009 at 10:20 am

    that was a really nice service that gavatar provides. I’m really going to use that on my main blog that for sure and going to use your 100% guide to get it to work!

    Thanks for nice guides!

    Reply
  58. Mark Edison says:
    June 20, 2009 at 3:07 pm

    Just to make sure, they do not work in joomla right?

    Reply
  59. eclipse says:
    June 29, 2009 at 1:44 am

    Thx for your guide, sometimes gravatar ruined my layout, after read this article, maybe i can fix the problem after read this article..

    Reply
  60. web development says:
    July 6, 2009 at 1:12 pm

    I have found that I use facebook for email now, just because there is a littel picture fo the person I am emailing. The simple act of posting a photo really makes a difference in terms of accesiobility. Guess I need to get a gravatar! Thx for the post!

    Reply
  61. Zhu says:
    October 4, 2009 at 11:12 pm

    I love Gravatar and keep on wondering why don’t more people sign up. I mean, it’s so easy and convenient… especially considering plenty of others website where you have to go through a weird registration process.

    I encourage people to sign up on my blog and I’m surprised to see a lot of people don’t.

    A personalized Gravatar does make a difference.

    Reply
  62. Anda Romania says:
    December 22, 2009 at 5:02 am

    I totally agree with you by using a gravatar its a better way to communicate with someone. Thank you for your tutorial!

    Reply
  63. Anton Romanov says:
    March 5, 2010 at 6:49 am

    Thank you! I long ago wanted to know how to use Gravatars on my site! Comments with Gravatars Pictures look very beautiful!

    Reply
  64. Pekka S says:
    July 8, 2010 at 12:13 pm

    Thanks!

    Reply
  65. Mike says:
    October 21, 2010 at 11:25 am

    Is there a way to link Gravatar to more than one WordPress site (verified services on Gravatar)? I’m a contributor on my work blog but also have a personal blog. I don’t seem to be able to verify a second WordPress site. Any ideas?

    Reply
    • Chris says:
      October 21, 2010 at 12:36 pm

      Mike, In the “Verified Services” section of your Gravatar profile you can only link to one WordPress.com account at a time. However if you go to the “My Links” section you can link to several different URL’s so you can add your other sites there.

      If one of the sites doesn’t show Gravatars in the comment section they either have them turned off (check under Settings –> Discussion –> Avatars to make sure they are on) or possibly the theme being used doesn’t support Gravatars. Fixing the theme is a little more complicated.

      Hope that helps.

      Reply
      • Mike says:
        October 21, 2010 at 2:38 pm

        Thanks for the quick response Chris! I’ll give it a try.

        Reply
  66. rkrasiha reo says:
    June 18, 2011 at 6:24 am

    Check out Increasr.com, you can get credits there much faster, you can also get twitter followers, facebook fans, youtube subscribers and video views. Check it at http://www.increasr.com

    Reply
  67. Leonel says:
    July 16, 2011 at 2:01 am

    Using Gravatar everywhere… not hard, just tricky and it can be done!! full tutorial: http://tumblr.com/xwb3j0aewk

    Reply
  68. imran says:
    December 29, 2011 at 4:56 am

    Thank you for your great post… now i have a gravatar and show my selected avatars on my wordpress site… thanks once again.

    Reply

Trackbacks

  1. Laptop stolen; keep your eyes open says:
    October 15, 2010 at 3:12 pm

    [...] and a round blue sticker with a white letter “G” in the middle that looks a lot like Gravatar‘s logo (because it is). There’s also a Scott Thigpen [...]

    Reply

Comment Policy: Your words are your own, so be nice and helpful if you can. Please, only use your real name and limit the number of links submitted in your comment. If in doubt, please take a moment to review our full Comment Policy before you click "Post Comment" so we don't mark your comment as spam.

Speak Your Mind Cancel reply

*

*

Sponsors

Genesis Framework for WordPressScribe SEOHeadway Themes — Is your website making Headway?

Connect With Chris

Subscribe via RSS! Check Out My Photos on Flickr! Be my friend on Facebook! Follow Me On Twitter! Subscribe to my channel on YouTube! Find Me On LinkedIn! Subscribe to my FriendFeed! Follow Me On Google Buzz! Subscribe to my channel on Vimeo! Share My Stumbles!

ChrisCree.TV

ChrisCree.TV banner

High Calling Blogs

Work and God

Good Stuff

Local Guides

  • Austin
  • Memphis
  • Charlotte
  • Baltimore
  • El Paso
  • Milwaukee
  • Madison
  • Boston
  • Seattle
  • Nashville
  • Denver
  • Washington DC
  • Las Vegas
  • Louisville
  • Portland


 TwitterCounter for @ChrisCree 
Friend of Creative Coast Button
Blog Network:
Name:
SuccessCREEations
Topics:
Social Media, Blogging, WordPress
Join my network
Blog Networks

Did you notice how fast this site is?

SuccessCREEations is accelerated by the
MaxCDN Content Delivery Network

Return to top of page

Copyright © 2012 · Delicious Theme (heavily) customized by SuccessCREEations, Inc. on the Genesis Theme Framework · WordPress · Log in