Simple Recent Posts Widget for Blogger

Hello and welcome to GetWebInfo.Com. Here you can find out that Simple Recent posts widget for your Blogger. The main advantage on this Recent Posts Widget is that it will show not only post titles but also post excerpts or snippets, and it's easy to customize or apply different on it. To make it fit your own design you will need to modify the CSS Style, you can change the link or background color, the size and the color of text and links. This is really a beautiful and stylish recent post widget for your blogger you can really like this widget when you try it on to your Blogger website.

Here is the screen shot of the both widgets 

How to add Recent Posts Widget in to Your Blogger?

Step 1. First of all Login To your Blogger Dashboard> Go to "Layout" and then Click on the "ADD a Gadget" Link.

Step 2. From the pop-up window, scroll down and choose HTML/JavaScript from the list.

Step 3. Then you can copy the code and past it in to HTML/JavaScript content Box.

Recent Posts Widget with Snippets/ Links and Description
<div id="hlrpsa">
<script type="text/javascript">
function showrecentposts(t){for(var e=0;e<numposts;e++){var n,r=t.feed.entry[e],i=r.title.$t;if(e==t.feed.entry.length)break;for(var s=0;s<;s++)if("alternate"[s].rel){[s].href;break};var a="...",d=r.published.$t,u=d.substring(0,4),o=d.substring(5,7),c=d.substring(8,10),l=new Array;if(l[1]="Jan",l[2]="Feb",l[3]="Mar",l[4]="Apr",l[5]="May",l[6]="Jun",l[7]="Jul",l[8]="Aug",l[9]="Sep",l[10]="Oct",l[11]="Nov",l[12]="Dec","content"in r)var m=r.content.$t;else if("summary"in r)var m=r.summary.$t;else var m="";var w=/<\S[^>]*>/g;if(m=m.replace(w,""),document.write('<div class="rctitle">'),standardstyling&&document.write("<br/>"),document.write(i),1==showpostdate&&document.write(" - "+l[parseInt(o,10)]+" "+c+" "+u),document.write('</div><div class="rcsumm">'),1==showpostsummary)if(standardstyling&&document.write(""),m.length<numchars)standardstyling&&document.write("<i>"),document.write(m),standardstyling&&document.write("</i>");else{standardstyling&&document.write(""),m=m.substring(0,numchars);var g=m.lastIndexOf(" ");m=m.substring(0,g),document.write(m+a),standardstyling&&document.write("")}document.write("</div>"),standardstyling&&document.write("")}standardstyling||document.write('<div class="bbwidgetfooter">'),standardstyling&&document.write(""),document.write(""),standardstyling||document.write("")}
<script type="text/javascript">
var numposts = 5;var showpostdate = true;var showpostsummary = true;var numchars = 100;var standardstyling = true;
<script src=";alt=json-in-script&amp;callback=showrecentposts">
</script></div><a style="font-size: 9px; color: #CECECE; float: right; margin-top: 10px;" href="" rel="nofollow" >Recent Posts Widget</a>
<noscript>Your browser does not support JavaScript!</noscript>
<style type="text/css">
.rctitle a{color:#000000;text-transform:capitalize;font-size:13px;}#hlrpsa {color: #999999; font-size: 12px;}.rcsumm {border-bottom:1px dotted #cccccc; padding-bottom:10px;margin-top:5px;}

Recent Posts Widget Showing Post Titles Only.
<div id="hlrpsb">
<script type="text/javascript">
function showrecentposts(t){for(var e=0;e<numposts;e++){var n,r=t.feed.entry[e],i=r.title.$t;if(e==t.feed.entry.length)break;for(var d=0;d<;d++)if("alternate"[d].rel){[d].href;break};var s=r.published.$t,a=s.substring(0,4),o=s.substring(5,7),l=s.substring(8,10),u=new Array;u[1]="Jan",u[2]="Feb",u[3]="Mar",u[4]="Apr",u[5]="May",u[6]="Jun",u[7]="Jul",u[8]="Aug",u[9]="Sep",u[10]="Oct",u[11]="Nov",u[12]="Dec",standardstyling||document.write(""),document.write('<div class="rctitles2">'),standardstyling&&document.write(""),document.write(i),standardstyling&&document.write(""),1==showpostdate&&document.write(" - "+l+" "+u[parseInt(o,10)]+" "+a),standardstyling||document.write("</div>"),document.write("</div>"),standardstyling&&document.write("")}standardstyling||document.write('<div class="bbwidgetfooter">'),standardstyling&&document.write(""),document.write(""),standardstyling||document.write("/div")}
<script type="text/javascript">var numposts = 10;var showpostdate = false;var standardstyling = true;</script>
<script src=""></script></div><a style="font-size: 9px; color: #CECECE; float: right; margin-top: 10px;" href="" rel="nofollow" >Recent Posts Widget</a>
<noscript>Oops! Make sure JavaScript is enabled in your browser.</noscript>
<style type=text/css>
#hlrpsb a {color: #000000;font-size:13px;text-transform:capitalize;}.rctitles2 {padding-bottom:10px;margin-bottom:10px;border-bottom: 1px dotted #cccccc;}

How to Customize the Recent Posts Widget.

  • To set how many posts to display, change the 5 value for the recent posts widget with snippets and the 10 for the recent posts widget with post titles only.
  • If you want to display the post dates, change "false" to ''true".
  • If you want to display the post dates, change "false" to "true".
  • The recent posts widget with summary will display 100 character, If you want more or less characters, change the "100" value with your own demand.
  • To change color of the links, modify the values in blue and for the font size, the values violet.
  • To change the color of the posts snippets modify the values in green and the values in orange for the font size. 
  • Replace the text with your URL.
Step 4. Now you can Save your Widget and you can all DONE.........

Hope this Article is really help full for you if you like this Article and also this widget so please share it with your friends on Social Media. Thanks for Reading.


  1. Hey Sir!

    I hope you are doing Great, This is a very helpful Article for beginners, Thanks For Sharing This Information Keep up the Good Work.
    Click Here to Get:- 10 Most Popular Recent Post Widget For Blogger


Post a Comment