WordPress has been gaining popularity recently as a major content management system (CMS); a content management system is a platform that allows anyone create online presence (e.g. blog, shop, company website, etc.) without any prior knowledge to programming. You might be asking yourself now; if this framework allows anyone create a website then won’t these websites look the same? The answer is no, as WordPress is highly customizable so your website will look exactly how you like it to look and will have the functionality you need.
One of the ways by which you can improve the look and customization of your website is to add a Gravatar; a Gravatar is the simple drawing/photo that appears beside the comments. This post will present a step by step guide on how to show Gravatars in the recent comments section. Of course you can use a plugin to do so, but all professional WordPress users know that though plugins are easy to use they tend to increase the overhead on the server and thus affects the performance of your website and for this reason this post will show you how to show a Gravatar in recent comments without a plugin.
Step One: Go to your website and log into your WordPress dashboard (www.example.com/wp-admin) and enter your credentials, then enter the dashboard.
Step Two: In your dashboard enter your Appearance menu.
Step Three: In the Appearance menu, go to the “Editor” tab.
Step Four: Open the sidebar.php file at the right hand side of the screen and copy and paste the following code in it:
Step Five: Save and close the sidebar.php file.
Enjoy, you’ve successfully added Gravatar to your recent comments section without a plugin.