Add Recent Comments Widget with Avatars To Blogger
In one of my previous tutorials, I have shared a simple Recent Comments widget having the ability to display the latest comments published on the blog posts. However, the main disadvantage of it was that it didn't have the option of showing the users' avatars; so for those who'd like to see something more, here's a stylish Recent comments widget with round avatars and comment excerpts. Besides providing the option of displaying the commenters avatars, we'll be able to change the default image for the anonymous avatar, as well.
Isn't that great? Let's begin adding it!
How to add recent comments widget with avatars
Step 1. Go to Blogger Dashboard > select your blog > go to 'Layout' & click the 'Add a Gadget' link.Step 2. When the popup window appears, scroll down and choose the 'HTML/Javascript' gadget.
Step 3. Now, copy and paste the following code inside the empty box:
NoteGet this Recent Comments Widget
- by default, 5 comments will be displayed... to show more replace the "5" values in red
- to change the avatar for anonymous users, replace the following address with the url of your image:
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPocUYYqZlBFu4AhTVUQocMUwZuDW_d7JPnhyu07gQuFFSciVMAKqNp9-XN5i6pdnU9RuciExcBiYV6t3Ld8r5w17423k9lM4QM-jIeBTnfVsl5ey9WneILjK2V2L8FuLZ10HDGYNZRVHX/s1600/default-avatar.jpg- to change the size of the avatar, replace 60 value in green.
- for square avatars, remove the line in red
Step 4. After you've made the changes, click Save... and we're done!
Once a reader sees the recent comments widget in the blog's sidebar, he comes to know that your blog is pretty active and that encourages him to post comments on your blog. This way, you can gather some active user base to comment on your blog posts.
Libellés : Comments, recent comments, Widgets
0 commentaires:
Enregistrer un commentaire
Abonnement Publier les commentaires [Atom]
<< Accueil