Gravatars on Self-Hosted WordPress Sites

This is a small tip for anyone with a self-hosted WordPress site, wanting to use an avatar (or gravatar as they are called here!)

Make sure the Gravatar you upload to gravatar.com it set to match the email address you have assigned in Users > Your Profile. You can add multiple email addresses if you want and set them to different images too.

There are some good guidelines on the WordPress site for using gravatars here: http://codex.wordpress.org/Using_Gravatars.

If you want to use css for the gravatars on your blog, you need to go into the wp-content/themes/your_theme/style.css (or whatever your css file is called.) In mine I have these lines:

img.avatar {
border: none;
margin: 0 0.5em 0 0;
}

You can of course set this to whatever you like. Gravatars can now also include transparency, so gif & png files are good to use too. If you change your gravatar you will need to wait about 5 minutes to see the changes.

other page


What do you think?

It's good to talk!

Your email address will not be published.