A gravatar is a miniaturized image that is associated with an e-mail. Implemented in the WordPress commenting system by default, this feature is a way to brighten up the look of your blog but also to identify you when you leave a quick comment – as well as an author, guest.
To have the gravatar on your blog, no plugin is required. Only 3 steps are required:
- Create an account at Gravatars ;
- Check that the feature is enabled in the options of WordPress;
- Check the PHP in the theme of your blog;
Create a Gravatar account
Create an account at Gravatars ; confirm your email and after activation of your account, click My Account > Add an image in gravatar website:
Upload the image you want, rate it and you will be able to use it.
Add the Gravatars function manually in WordPress
For information, here is the PHP command used to implement Gravatars for inclusion in the comments.php file:
<? Get_avatar php echo ($ id_or_email, $ size = '96 ', $ default =' <path_to_url> ');>
Settings for Gravatars in WordPress
Open the Settings tab and click the Discussion settings. Scroll to the bottom of the page, go to avatars section.
As you can see, you now have the choice between different sets of avatars to be used by default if the commentator of one of your articles would not use custom avatar.
This first category includes classic avatars:
As you can imagine, the static avatars will quickly deplete visual feedback when they merging into one after the other, are all identical.
This is where the “generated” are needed. Gone are the days of monotony of the default avatars, avatars are generated randomly. To do this, select one of the following series:
Save the changes and see the result in one of your post with comments.