Using WordPress Gravatars

Learn about WordPress Gravatars … what they are, how they work, and how to set up Gravatars in WordPress …

How To Use WordPress Gravatars

WordPress Gravatar icon

No doubt, you are probably already familiar with avatars.

An avatar is an icon, or representation of a user in a shared virtual reality such as a forum, chat, website, or any other form of online community where the user(s) wish to distinguish themselves from other users.

(Source: WordPress Codex)

Using avatars (profile images) is now standard across sites that encourage user interactivity, such as social media networks like Facebook, Twitter, YouTube, etc., and many online forums and directories.

Composite image of social network discussion and commenting pages displaying avatars.
Avatars are commonly used across sites all over the web.

If you visit other WordPress sites and blogs, you will see that these sites often display user avatars in their post comments and online discussions.

Example of a WordPress blog's comments section.
Many WordPress sites display user avatars in their online comments and discussions.

You may have noticed that some comments in blog posts display user profile images (i.e. avatars) and some don’t.

Typically, comments without user images display a greyed out silhouette or some other generic icon.

A user comment without a profile image.
This user’s comment displays a generic icon instead of their user profile image.

In this tutorial, you will learn:

  • What Gravatars are and how they work,
  • How to set up avatars in WordPress,
  • How to display avatars for users commenting on your posts instead of generic icons.

What Is A Gravatar?

If WordPress detects comments from users on your posts and cannot find a profile image associated with that user, it automatically assigns a generic icon image to the comment or entry.

A WordPress user comment without a user profile image.
WordPress automatically assigns a generic icon to users without a profile image.

The same thing will happen to you if you post a comment on someone else’s WordPress site unless you set up a special kind of WordPress avatar, called a Gravatar.

A Gravatar.
A Gravatar is a special kind of avatar used across all WordPress sites.

Gravatar is short for Globally Recognized Avatar.

Avatars are usually an image that users upload to every site they register with.  A Gravatar allows you to use one avatar on every WordPress site you post comments on.

Unlike standard avatars then, Gravatars follow you around the web and automatically appear whenever you post a comment on a WordPress site. was acquired in 2007 by Automattic, the company behind WordPress. As a result, Gravatars are now integrated into WordPress and millions of gravatar images are served billions of times per day across the web.

Gravatars are also supported by many technology platforms.

How Does A Gravatar Work?

You need to set up a Gravatar before you can use it on WordPress sites.

Once you have set up your Gravatar account (see instructions below), the service will match your WordPress user profile information to the email address in your account. It will then use this to display your custom Gravatar image with your user profile, comments, post entries, discussions, and (optionally) everywhere else across the WordPress universe.

A Gravatar.
You need to set up a Gravatar before you can use it in WordPress.

If a visitor has not set up a Gravatar account, the default avatar set by the WordPress site administrator will display next to their comments and entries (this is explained further below).

A default avatar set by a WordPress site administrator.
A default avatar set by a WordPress site administrator.

Typically, the default avatar image that is most commonly used is called the “Mystery Person”.

Mystery Person avatar.
The Mystery Person avatar.

If you post comments on other WordPress sites and don’t want your entries to display a default or generic icon, the easiest thing to do is set up a gravatar of your own.

Benefits Of Using Gravatars

A Gravatar is basically an avatar that is hosted on a single server and is called up by encrypting the users’ email address using a special algorithm.

Instead of displaying one avatar on a forum that you frequently visit and displaying another avatar on a blog that you are a registered member of (in other words, creating different avatars for every site you have an account with), a Gravatar allows you to display the same avatar on every site you visit.

Enabling Gravatars on your WordPress site also simplifies the process for everyone involved:

Benefits for Site Administrators

  • Gravatars require very little effort to manage.
  • There is no need to maintain additional plugins.
  • Gravatars are visually portable across the web. You don’t need to manage user accounts or edit user images to allow post commenters to use Gravatars on your site.

Benefits For WordPress Users

  • Having a Gravatar account saves users from having to register and upload a new avatar on every site they join.
  • Users can update their Gravatar across multiple sites by simply uploading a single image inside their account.

How To Add A Gravatar

To start using Gravatars, you will first need to create an account (it’s FREE) here:
Create a free account at

Since Gravatar is part of WordPress, you can also log in with your account details if you have one set up. log in screen. log in screen.

If you don’t have a account, you can easily register and set one up on the site. account registration screen.
Create an account with to sign up for Gravatar.


If you have several email addresses, you can set up multiple Gravatars associated with each email address.

Gravatar - Add an email to this account.
You can set up multiple Gravatars using different email addresses.

Once you have verified and set up your account, follow the instructions to set up your profile, and select the email address and image you want to associate with your Gravatar.

You will need to upload an image.

Gravatar - Upload image screen.
Upload your Gravatar image.

Gravatar automatically resizes large images and has a 10MB file size limit.

Upload your Gravatar image.
Upload your Gravatar image.

After uploading your image, crop and save it.

Crop your Gravatar image.
Add and crop your Gravatar image.

Next, select a rating for your Gravatar:

  • G – Select this option for images that are suitable for display on all websites with any audience type.
  • PG – Select this option if your Gravatar image contains rude gestures, provocatively dressed individuals, lesser swear words, or mild violence.
  • R – Select this option if your Gravatar image contains harsh profanity, intense violence, nudity, or hard drug use.
  • X – Select this option if your Gravatar image contains hardcore sexual imagery or extremely disturbing violence.
Choose a rating for your Gravatar.
Choose a rating for your Gravatar.

Select the email address you want to associate with your Gravatar. As mentioned earlier, you can add multiple addresses to your Gravatar accont.

Click the ‘Use for selected addresses’ button to complete the process and set up your Gravatar.

Assign an email address to your Gravatar image.
Assign an email address to your Gravatar image.

You can access and edit/manage your own account settings at any time by clicking on the ‘My Gravatars’ menu link.

Manage Gravatars screen.
Manage your Gravatars.

You can also edit your profile further by associating your Gravatar with an email, website, location, and a brief bio description.

Gravatar profile settings.
Complete your Gravatar profile settings.

After you have finished editing your details and setting up your account, your Gravatar will be integrated with your WordPress account and begin following you around the web.

It will display in your post and blog comments, forums, etc.

Gravatar displayed in comments.
Your Gravatar will display in all of your comments.

Your Gravatar will also display inside your WordPress dashboard, in your user profile…

WordPress User screen.
Your Gravatar displays in your WordPress User profile.

And whenever you log into your site.

Gravatar - Howdy, WordPress User
Your Gravatar displays in your WordPress admin area.

How To Manage Gravatar Settings in WordPress

Although WordPress sites automatically integrate with Gravatars, you can manage settings like:

  • Whether Avatars (aka, Gravatars) display on your site or not.
  • Which kind of Gravatars can display (using the Avatar rating filter).

To manage how Gravatars are used on your site, log into your WordPress admin area and go to the Settings > Discussion screen.

WordPress Settings Menu - Discussion
WordPress Settings Menu – Discussion

Scroll down the screen to the Avatars section.

You will be presented with several options:

  1. Avatar Display: Toggle Gravatars on and off for your site.
  2. Maximum Rating: When users create a profile on Gravatar, they are given the opportunity to rate their Gravatar image (i.e. G, PG, R, X) based on appropriateness. This section lets you choose the maximum rating you will allow to display on your site.
  3. Default Avatar: WordPress allows you to select what type of image you would like to display when users do not have a Gravatar account. Selecting one of the generated icons gives users a default avatar without requiring them to have a Gravatar account. Generated icons link the email of the commenter to an auto-generated image. Every time the user posts a comment on your site, they will be assigned the same image.
WordPress Discussion Settings- Avatars
Manage Avatar in the WordPress Discussion Settings screen.

Remember to click the Save Changes button when finished to save your new settings.

Using Gravatars – Additional Tips

By default, WordPress displays Gravatars using a fixed size. To change the default WordPress Gravatar image size, you will need to edit code in your template files.

Contact us if you need help customizing your Gravatar image size.

Also, there are many WordPress plugins you can use to extend the functionality of Gravatars. You can search for Gravatar-related plugins inside your WordPress admin area (Plugins > Add Plugins).

WordPress plugin directory - Gravatar plugins.
Search for gravatar-related plugins inside your WordPress plugin dashboard.

You can use plugins to:

  • Add custom Gravatar images from your WordPress Media Library
  • Add pop-up information boxes with additional details and information about the user (called a Gravatar Hovercard) when visitors hover over the Gravatar image.
  • Host Gravatars on your own server.
  • Disable Gravatars in certain instances.
  • Cache Gravatar images to speed up page loading.
  • And more.

Gravatar Hovercards

A Gravatar Hovercard allows your profile information to be made visible to others. This makes it easier for users to find your blog or access your identity on services like Twitter, Facebook, or Linkedin.

A Gravatar Hovercard is typically a feature of (the hosted version of WordPress).  You can add Gravatar Hovercards to your self-hosted WordPress site by installing the Jetpack plugin.

Jetpack WordPress Plugin - Gravatar Hovercards
Add Gravatar Hovercards to your self-hosted WordPress site using the Jetpack WordPress plugin.

Once Jetpack is installed on your site and the Gravatar Hovercards feature is activated, a new entry will appear on your Discussion Settings > Avatars section.

This allows you to display user profiles when someone hovers over a Gravatar image.

WordPress Discussion Settings - Gravatar Hovercards
Jetpack adds a Gravatar Hovercards section to the WordPress Discussion Settings screen.

If you activate the Hovercards feature, then whenever visitors hover over your Gravatar…

Hover over a Gravatar to display a Gravatar Hovercard.

Your Gravatar Hovercard will pop up, allowing users to click through to your profile and learn a little more about you.

Gravatar Hovercard.
Gravatar Hovercard.

Add A Custom Gravatar To WordPress

You can replace the default user gravatar on your site for users that don’t have a gravatar set up.

To learn how to add a custom gravatar to WordPress, see this tutorial: How To Add A Custom Gravatar To WordPress

Sample comments with Gravatar and Mystery Person icon images.
Learn how to add and use Gravatars in WordPress.

Congratulations! Now you know what Gravatars are and how to set them up and use them in WordPress to display your avatar in your posts, comments, discussions, and more.

Gravatar logo source: Avatar movie references used for illustrative purposes only. All copyright belongs to their respective owners.


"I love the way your email series "Infinite Web Content Creation Training Series" is documented and presented. It is very absorbing and captivating. The links and tutorials are interesting and educational. This has motivated me to rewrite my content following the concepts I am learning from the email series." - Mani Raju,


We are not affiliated, associated, sponsored, or endorsed by WordPress or its parent company Automattic. This site contains affiliate links to products. We may receive a commission for purchases made through these links.