Simple Recent Posts Widget for Blogger Blogspot Site

To have Recent Posts widget is that it will display not only post titles, but also read more option as you can say it post excerpts or snippets, and it's very easy to customize this style you can change with your own style too. Want to make fit this recent post widget for your design then you need to simply modify css codes.

What you can do with this recent posts widget:
- it will display only post titles
- you can change the number of posts
- also changeable the number of characters of the post snippet/excerpt
- and show the post dates too

See the screenshot of recent post widget:
Simple Recent Posts Widget for Blogger Blogspot Site

How to add Recent Posts Widget to Blogger

Step 1. Log in to your blog and go to edit template
Simple Recent Posts Widget for Blogger Blogspot Site

Step 2. From the pop-up add widget window, choose HTML/JavaScript
Simple Recent Posts Widget for Blogger Blogspot Site

Step 3. Select & Copy the code from one of the options below and paste it into the new HTML/JavaScript:

Option 1: Recent Posts Widget with Snippets

<div id="hlrpsa">

<script src="https://raw.githubusercontent.com/shohag5885/blogger/583848849edb8f8150035b7ee41fd234cd9cdbbb/recent-posts-with-snippets.js">

</script>

<script>

var numposts = 5;var showpostdate = false;var showpostsummary = true;var numchars = 100;var standardstyling = true;

</script>

<script src="http://sisourav.com/feeds/posts/default?orderby=published&amp;alt=json-in-script&amp;callback=showrecentposts">

</script></div><a style="font-size: 9px; color: #CECECE; float: right; margin: 5px;" href="http://www.sisourav.com/2016/01/simple-recent-posts-widget-for-blogger.html" rel="nofollow" >Recent Posts Widget</a>

<noscript>Your browser does not support JavaScript!</noscript>

<style type="text/css">

#hlrpsa a {color: #0B3861; font-size: 13px;}

#rpdr, #rpdr a {color:#808080;}

#hlrpsa { color: #999999; font-size: 11px; border-bottom:1px #cccccc dotted; margin-top:-10px; padding-bottom:10px;}

.hlrps a {font-weight:bold; }

.hlrpssumm {}

</style>

Option 2: Recent Posts Widget Showing Post Titles Only

<div id="hlrpsb">

<script style="text/javascript" src="https://raw.githubusercontent.com/shohag5885/blogger/583848849edb8f8150035b7ee41fd234cd9cdbbb/recent-posts-with-snippets.js"></script>

<script style="text/javascript">var numposts = 10;var showpostdate = false;var showpostsummary = false;var numchars = 100;var standardstyling = true;</script>

<script src="http://www.sisourav.com/feeds/posts/default?orderby=published&alt=json-in-script&callback=showrecentposts"></script></div><a style="font-size: 9px; color: #CECECE; float: right; margin: 5px;" href="http://www.sisourav.com/2016/01/simple-recent-posts-widget-for-blogger.html" rel="nofollow" >Recent Posts Widget</a>

<noscript>Oops! Make sure JavaScript is enabled in your browser.</noscript>

<style type=text/css>


#hlrpsb a {color: #0B3861; font-size: 13px;}

#rpdr, #rpdr a {color:#808080;}

.bbrecpost2 {

padding-top:6px;

padding-bottom:6px;

border-bottom: 1px #cccccc dotted; }

</style>
Step 4. Customize it:

- Change 5 (option 1) and 10 (option 2) with the number of posts that you want to display.

- Change false to true if you want the posts dates to appear

- Change 100 (option 1) if you want more characters to be displayed.

- To change the color and font size of the links, modify the values in blue (links) and violet (font-size)

- To change the style of posts summary, modify the values in green (color) and orange (font size)

- Replace the http://sisourav.com text with your URL

Step 5. Save your widget. And that's it! Enjoy!

0 Comments