In Blogger, we can add widgets or gadgets in order to make posts from the blogs appear on the sidebar. Blogger natively keeps the stats of post views and so it has an official gadget which we can use to display popular posts. Then there are ways to use the blogger post feed to display the most recent posts or even random posts.
Note: For the plugins below to work, jquery must already be included in your template.
Display Popular Posts with Thumbnails in Blogger / Blogspot
- Login to Blogger and head on to the layout editor of your blog.
- Click on “Add a Gadget” link in the part of the template where you want to list the most popular posts.
- From the official list of Gadgets in Blogger, scroll to the one that is titled “Popular Posts”.
- Either click on the title or the plus sign right next to it.
- In the next step, you can choose the title of the widget along with what to display. You can display the most viewed posts of all time, past 30 days or past 7 days. Choosing all time is not recommended because you’d want to keep this section fresh with recently popular posts. Reading posts from months or even years ago will not always be the visitors choice. But they are bound to have more views because they have been online for so long.
- Choose the checkboxes that says image thumbnails and snippets to display those respectively. It is more attractive when you have an image and a bit of text from the post. You can skip the post snippet, but images make your blog widgets look great, trust me.
- Click on “Save” and you are done. Top posts from the time period that you selected will be displayed in the sidebar or wherever you chose them to be displayed.
Display Recent Posts with Thumbnails in Blogger / Blogspot
- Login to Blogger, select your blog and click on Layout to reach layout editor of your blog.
- Click on “Add a Gadget” link where you’d be placing the widget. You can move this gadget later.
- Scroll down in the gadget list and find the one that says “HTML/JavaScript”. Click on it to add it.
- On the next screen, give your gadget a title like “Recent Posts”.
- In the content area, add the following code:
Configurable options in the code:
numberofposts:9 – Change 9 to whatever number of posts you want to display.
commentstext:”Comments” – Choose what to display for the comments text. You can leave it as it is.
imagesize:72 – Dimensions of your image. 72 is the default one.
snippetsize – Length in characters of the text snippet accompanying the post. - Hit save and you are done. You can edit the CSS in the code if you want.
Display Random Posts with Thumbnails in Blogger / Blogspot
- Go to your Layout editor of your blog, where you want to add a random posts gadget.
- Click on the “Add a Gadget” link, a popup will follow.
- In the popup, select “HTML/JavaScript”, gadget and click on its title or the ‘+’ button to add it.
- Give your widget a title like “Random Posts”, or “You may Like” for example.
- Add the following code to the “Content” area. Press save when you
are done. Your Blogger blog now will now display random posts in the
template.
Configurable Options:
rdnumbepost=5 – The number of random posts you want to display.
rdsnippet_length=100 – Length of your post snippet alongside the thumbnail.
var rdcomment=’Comments’ – Text for your “comments”. Leave it as it is.
rdinfo=”yes”– Set this to anything else to hide the date and comments info.
Dear readers, after reading the Content please ask for advice and to provide constructive feedback Please Write Relevant Comment with Polite Language.Your comments inspired me to continue blogging. Your opinion much more valuable to me. Thank you.