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 style 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 color of text/links.
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:
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:
- 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://blog-address.com text with your URL
Step 5. Save your widget. And that's it! Enjoy!
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 > go to "Layout" and click the "Add a Gadget" linkStep 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://blog-address.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://bloggerchive.blogspot.com/2012/04/simple-related-posts-widget-for-blogger.html" >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">Step 4. Customize it:
<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://blog-address.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://bloggerchive.blogspot.com/2012/04/simple-related-posts-widget-for-blogger.html" >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>
- 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://blog-address.com text with your URL
Step 5. Save your widget. And that's it! Enjoy!
good!
http://soft375.blogspot.com/ for latest software downloads
Thanks for the beautify tutorials.
Okay 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
Thanks.
how to change to font color?
Adjustments to the font color and a larger font for the title would be incredible.
Hi,
Just 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)
For the font size add the following lines just after <style type="text/css">
For 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 ;)
Please tell me!!.How can I change the number of posts more than 25 posts?
Thank very much!;)
Thanks for this however, i also wanted to add the thumnails too.:)
thank you very much this is a great help for me.
very very thanks
Its 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..
Thank you very much!
wow great, it was so easy following these steps!
Thanks 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
nice !
http://www.warezbi.com
how to add rss image aur any symbol in starting of titles..
oh my God, you this tutorial too, I've been looking on google! Thanks again!
Thank you so much!! I have learnt a lot from you.You guys are very supportive for newbie's like us.
Thank you so much for the widget. The featured 'recent Posts' widget on blogger keeps breaking down and takes a big bite out of my pageviews when it does. This one is wonderful. Thank you.
how to show thumbnail image??
how can i add recently post with image.
it didnt work with my blog :(
this is pretty helpful, thanks
Hy friend.. could i able to add images with the recent posts ..??
Thanks..
:)
thanks..nice info..
Does it work with Squarespace?
I have tried it and it didn't work. Do you have any other alternative?
so helpful... thank you very much
This works wonderfully! Anyway to add an image?
i was developing a new widget and was searching for this script...that's man....
Awesome. this is what i am looking for
Hi, the code has an error:
if (!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.
Thanks for sharing
how to configure widget height
Nice info.. thanks..
visit back.
I use your code..
i 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.
Shirley
thanks
Thank you so much! I have been looking forward it for days!
This would be very helpful, as frame is too small to support full blog page. Please, please please...can the author respond to this?
Thanks for the help. It has appeared on my blog displaying the month and day posted but not the year. Did I miss something?
My 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?
http://bankapure.blogspot.com
bankapure@gmail.com
Fixed. It was missing inside the JavaScript file, now I added that code part and it works. Please check your blog. Thanks for visiting!
You're welcome. Thanks for stopping by :)
Thank you, its fine now.
Thank you so much for this. Is there a way of showing a feed for a particular label/tag?
nice post..
tq
Works also fine as widget on my homepage (http://www.kueting.de) with blog source (http://blog.kueting.de)!
Nice work! :)
Wow! Works like a charm! Thank you!!
www.tilliesdream.com
Thank u very much!
thanks for this great tutorial! i used it in my blog epicfeedtime.com
Would it be possible to make the images the link to the post as well?
Thank You...It's working.......
Thanks a million, I implemented it on my blog
www.baba2023.com
2 things --
1) Thanks! This script is awesome. I appreciate the time you've spent building and fine-tuning it.
2) I've actually made this a page on my website. Unfortunately, it only lists the most recent 25. Is there a way to tweak it to show the last, say, 200?
Thanks again!
Thank you so very much. I am a reader of your site and love all of your tricks and tips
Thanks a lot. I used the option1 modified version and it's looking beautiful.
This is becoming my fav blogger widget blog :)
http://pravab.blogspot.com/
P.S> why are the new comments in teh bottom and the old ones on the top?
how to implement marquee ?
hi
can u help and suggest me only loables based blogger templates
than u so much
Thankful. It works as advertised. Lot bettr than the default list widget.
nice..work for me,thank a lot
thank yoy plend,, nice to meet your blog,, flwback eahh,, :)
This is an amazing list of information.thanks for sharing
thank for sharing...it great
thanks... i like that tutorial..
Thank you
Thank you for sharing this! Exactly what I was looking for.
Well, that was easy peasy! Thank you!
Well, that was easy peasy...thank you!
Please help. I have tried this widget in my blog & it shows a tab of Recent Posts at right side in my blog, but it's not displaying any titles in there which I have posted recently. What's going wrong? Please help...
Ohh.. Thank You, It works nicely. Actually I have messed something, now it's perfect.
شكرا ... thanks
can you give me code of related posts !
thank you !
Not working man
Thanks..Its simple and easy to apply..
Thanks! Can you make the title and post snippet different font size and color? Also, how to put a line break in between the title and snippet?
Thank you sharing this post.
Thanks for this Widget, it works great on my Blog!
not working on my blog :(
Hi,
Please make sure that you replace http://your-blog.blogspot.com with your blog address and that it doesn't have more than a trailing slash at the end.
Thanks , nice blog
http://makeitsimple.co.in/
Thanks so very much!
Just what I'm looking for. Thanks.
thank you (:
I'm using option 1 and would like to know how to add thumbnails (80x80px). Thanks!
HOW TO RESIZE THE TITLE(RECENT POSTS)?
Yes, i have to try this.
and it's work to have an wiged popular post in my blog..
thanks a lot..
Hello, thank you. After the inbuilt 'Recent Comments' and 'Recent 'Posts' widgets in Blogger went kaput, I'd been looking for a simpler widget. Yours worked beautifully. Thank you so much again. You may wish to view my blog at mobilephoneus.blogspot.in and check it out if you are interested.
Nice! Thanks you very much! ;)
can someone give me a link to read up on what coding is compatible with blogger, and its posts.
Thank you. What code would I need to a "visited color" or a "hover color?"
Hi Johnny,
You need to add the following snippets just before the </style> tag:
#hlrpsb a:visited {color: #000000; }
#hlrpsb a:hover {color: #0000ff; }
And then, replace the color values.
Awesome. Thanks.
Thanks for great tutorial :)
it's really helpful and easy to understand!
Any way to make this widget to show more then 25 recent posts? It can be really helpfull to me if you have any idea. Thanks!
Hi,
Great code,
please can you post an update that removes the limit of 25 posts and how to add a thumbnail,
thanks
J
thanks!
keep it up!
Thanks for sharing. I saw a lot of success comments above.
But it does not work on my blog.
I tried to add codes into HTML mode for a static page.
Please help.
its not working on my website i.e www.resultidea.in
good job man ! i like it, thanks very much
It works and looks great, I couldn't possibly ask for more. Once again, thank you for making everything involving code seem so easy.
Hi i have added the widget and customized it to include photos, Does any one know how i can auto resize the images? Thanks, your help will be appreciated
Great! Thanks a lot !
thanks so much, so help me. oh ya, maybe you can make a new widget show article per label like this widget next day. :)
Not working on my blog.. :-( Just showing "Recent Posts Widget" with the link to your website. Blogger is deleting scripts when i save them.
But sir i have installed a template which already have the option of recent posts.
But i don't know how to customize it.
I want to change color and no. of recent posts.Help me Sir !!
Is not working for me