What you can do with this widget:
- display post titles only
- change the number of posts
- change the number of characters of the post snippet/excerpt
- show the post dates
See the screenshot below:
How to add Recent Posts Widget to Blogger
Step 1. Log in to your Blogger Dashboard, then go to Layout and click on Add a Gadget link
Step 2. From the pop-up window, scroll down and choose HTML/JavaScript
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="http://helplogger.googlecode.com/svn/trunk/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://your-blog.blogspot.com/feeds/posts/default?orderby=published&alt=json-in-script&callback=showrecentposts">
</script></div>
<div id="rpdr" style="font-family: arial, sans-serif; font-size: 9px;">
<a href="http://helplogger.blogspot.com/2012/04/recent-posts-widget-for-bloggerblogspot.html" target="_blank" title="Grab this Recent Posts Widget">Recent Posts Widget</a> by <a href="http://helplogger.blogspot.com" title="Recent Posts Widget">Helplogger</a></div>
<noscript>Your browser does not support JavaScript!</noscript>
<style type="text/css">
#hlrpsa a {color: #0B3861; font-size: 13px;} #rpdr {background: url(http://3.bp.blogspot.com/-WM-QlPmHc6Y/T5wJV58qj9I/AAAAAAAACAk/1kULxdNyEyg/s1600/blogger.png) 0px 0px no-repeat; padding: 1px 0px 0px 19px; height:14px; margin: 5px 0px 0px 0px;line-height:14px;}
#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="http://helplogger.googlecode.com/svn/trunk/recent-posts-with-titles-only.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://your-blog.blogspot.com/feeds/posts/default?orderby=published&alt=json-in-script&callback=showrecentposts"></script></div>
<div style="font-family: arial, sans-serif; font-size: 9px;" id="rpdr"><a href="http://helplogger.blogspot.com/2012/04/recent-posts-widget-for-bloggerblogspot.html" title="Grab this Recent Posts Widget" target="_blank">Recent Posts Widget</a> by <a href="http://helplogger.blogspot.com" title="Recent Posts Widget">Helplogger</a></div><noscript>Oops! Make sure JavaScript is enabled in your browser.</noscript>
<style type=text/css>
#hlrpsb a {color: #0B3861; font-size: 13px;} #rpdr {background: url( http://3.bp.blogspot.com/-WM-QlPmHc6Y/T5wJV58qj9I/AAAAAAAACAk/1kULxdNyEyg/s1600/blogger.png ) 0px 0px no-repeat; padding: 1px 0px 0px 19px; height:14px; margin: 5px 0px 0px 0px;line-height:14px;}
#rpdr, #rpdr a {color:#808080;}
.bbrecpost2 {
padding-top:6px;
padding-bottom:6px;
border-bottom: 1px #cccccc dotted; }
</style>
Step 4.
- Change 5 (option 1) and 10 (option 2) with the number of posts 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 your-blog text with the name of your blog or if you have a custom domain change all the bolded line with your address like in this example:
http://www.your-site.com/feeds/posts/default....
Step 5. Save your widget. And that's it! Enjoy!
If you need any help, leave a comment below.
And if you liked this post, please consider sharing it. Thanks.





Wow! it`s a very easy to apply trick, Thank you sir, Now every one can see my recent post. Do you want to?
ReplyDeletegood!
ReplyDeletehttp://soft375.blogspot.com/ for latest software downloads
Thanks for the beautify tutorials.
ReplyDeleteThank you
ReplyDeleteOkay everything works! One Question thought, what can i change to open the links in a new window (target _blank)? or is that on your script
ReplyDeleteThis would be very helpful, as frame is too small to support full blog page. Please, please please...can the author respond to this?
DeleteThanks.
ReplyDeletehow to change to font color?
ReplyDeleteHi,
DeleteJust after <style type="text/css"> add the following line:
For the 1st option:
#hlrpsa a {color: #yourcolorcodehere;}
For the 2nd option:
#hlrpsb a {color: #yourcolorcodehere; }
Replace #yourcolorcodehere with the hex code of your color (be careful to not delete the ; and } symbols)
thank you very much this is a great help for me.
DeleteAdjustments to the font color and a larger font for the title would be incredible.
ReplyDeleteFor the font size add the following lines just after <style type="text/css">
DeleteFor the 1st option:
#hlrpsa a {font-size: 15px;}
For the 2nd option:
#hlrpsb a {font-size: 15px; }
Increase/decrease the 15px value for changing the font size ;)
This is amazing widget, thanks for sharing ...
ReplyDeletehi friend, i like your trick, please share how to make recent comment with cirle image in right sidebar. please share it. thanks
ReplyDeleteHi Ayam, please check this tutorial
Deletehow can I do like this;
ReplyDeletehttp://helplogger.blogspot.com/2012/03/add-multi-colored-popular-posts-to.html
multi color.
Please tell me!!.How can I change the number of posts more than 25 posts?
ReplyDeleteThank very much!;)
ReplyDeleteThanks for this however, i also wanted to add the thumnails too.:)
ReplyDeletethanks for the tutorial
ReplyDeletevery very thanks
ReplyDeleteIts really very nice post i get help from this post to create recent post widget Thank you so much :)
ReplyDeleteIt's work dude thanks for share such a nice and helping post with mention editing options as per desire you rocks!!! :D
ReplyDeleteThank you so much! So easy to follow your instructions! Brilliant!
ReplyDeleteIts was Good. Can i know how to make This by Showing video as recent post As If blog is About The Video.Widgets showing video with Title..
ReplyDeletethank you very much
ReplyDeleteThank you very much!
ReplyDeletewow great, it was so easy following these steps!
ReplyDeleteThanks so much! For some reason it's only showing 25 post titles as it seems this is the max. Is there a way to increase this? Thanks
ReplyDeleteI guess this info is totally unique.
ReplyDeleteSignfloat Bookmarking
Thanks thanks thanks, i'd like your post, its very help my problem's blog
ReplyDeleteThank for sharing!
ReplyDeleteThanks a lot for tutorial, now I have this recent post widget on my blog. Thanks again.
ReplyDeletenice !
ReplyDeletehttp://www.warezbi.com
Thank you so much!! I have learnt a lot from you.You guys are very supportive for newbie's like us.
ReplyDeleteit didnt work with my blog :(
ReplyDeletethis is pretty helpful, thanks
ReplyDeleteHy friend.. could i able to add images with the recent posts ..??
ReplyDeleteThanks..
ReplyDelete:)
thanks..nice info..
ReplyDeleteDoes it work with Squarespace?
ReplyDeleteI have tried it and it didn't work. Do you have any other alternative?
http://www.Saeedbaba.com
ReplyDeletevery nice post and nice blog
really helpful for blogger
How to set width and height of widget?
ReplyDeleteso helpful... thank you very much
ReplyDeletethanks alot for this great share, i truly love this
ReplyDeleteThis works wonderfully! Anyway to add an image?
ReplyDeletethere are 2 options, love it!
ReplyDeletei was developing a new widget and was searching for this script...that's man....
ReplyDeleteAwesome. this is what i am looking for
ReplyDeleteHi, the code has an error:
ReplyDeleteif (!standardstyling) document.write('/div');
Should be the following?
if (!standardstyling) document.write('</div>');
Thank for this widget!
Nice and simple widget, worked fine im my website.
ReplyDeleteThanks for sharing
OK, thanks you very much.
ReplyDelete@ du hoc nhat ban
Please help me. I see it show on home page. I don't want this. I want it only display on detail articles. Thanks
ReplyDelete@ du hoc nhat ban
Please read this tutorial.
Deletehow to configure widget height
ReplyDeleteNice info.. thanks..
ReplyDeletevisit back.
I use your code..
ReplyDeletei like your code..
i use in this blog http://freehdtvlive.blogspot.com
Thank you so much for your blogging help. Your site is so much better than blogger help and your tutorials are so easy to follow.
ReplyDeleteShirley
thanks
ReplyDeleteThank you so much! I have been looking forward it for days!
ReplyDeleteYou're welcome. Thanks for stopping by :)
DeleteThanks for the help. It has appeared on my blog displaying the month and day posted but not the year. Did I miss something?
ReplyDeleteFixed. It was missing inside the JavaScript file, now I added that code part and it works. Please check your blog. Thanks for visiting!
DeleteThank you, its fine now.
DeleteMy blog is now displaying only 25 posts where actually am having more than 50 posts. Could you please help me out to show/display all the posts in the Dynamic Sidebar of my blog?
ReplyDeletehttp://bankapure.blogspot.com
bankapure@gmail.com
very nice post and nice blog
ReplyDeletereally helpful for blogger
Thank you so much for this. Is there a way of showing a feed for a particular label/tag?
ReplyDeletenice post..
ReplyDeletetq
Works also fine as widget on my homepage (http://www.kueting.de) with blog source (http://blog.kueting.de)!
ReplyDeleteNice work! :)
Wow! Works like a charm! Thank you!!
ReplyDeletewww.tilliesdream.com
Thank u very much!
ReplyDeletethanks for this great tutorial! i used it in my blog epicfeedtime.com
ReplyDelete