How To Enable Gravatar On Your Blog Comments
Categories: Blogging, FYI, Featured, How to's, Interesting, Tips & Tricks
Written By: Louis James Diaz
First of all what is Gravatar?
It is a universal avatar that you can use from one blog to another when commenting or sometimes used for multi-user blogs to be able to identify each author from one another.
If you want one you may regster HERE.
Okay moving on, there’s a big chance that you may have had stumbled upon this post because you have a blog that is not gravatar enabled and you want to enable it.
Well, as a matter of fact, I have seen blogs that aren’t gravatar enabled, I don’t know if they really did not want their blogs to have those gravatars or they did not know how to enable gravatar on their blog theme.
But no matter what, I have had a simple way of trying to enable and even resize the gravatar on your blogs.
Login to your WordPress dashboard and go to Appearance > Editor
Then open your Comments.php ( to be able to edit this, you must have set the permission of this file to 666)
Then on the comments.php, find the command <!– You can start editing here. –>
and then insert this code <?php echo get_avatar( $comment, 50 ); ?>
Wondering where to insert that code? check the picture below.
.
and then save your changes. Note that you can change the size of the gravatar on your comments by changing the number value on the code you have just inserted (value of 50 from the example).
And there you have it adjust the size of gravatar you want on your comments and off you go!
Hope that simple trick helps!
Related Posts:









March 8th, 2010 at 3:19 am
Glad that one helped you out! Happy blogging!
March 7th, 2010 at 12:50 pm
Here it is, more than a year later since you offered that description on enabling Gravatars in blog comments.
As it happened, one of my four blogs must have had an old-style template, for nothing I did to get Gravators showing up on the other three blogs worked on this one blog.
I located your site after doing a Google search that initially wasn’t helping me out very much, but your very clear and simple instructions were just the solution I needed!
Thank you very much!!!
August 27th, 2009 at 6:32 pm
[...] But…you can still enable them! All you need to do is insert the code which calls for the commentators gravatar. Here’s how to enable them if you use wordpress. [...]