How to Make a Simple Responsive Recent Posts in Blogspot


MY BACKLINK - Simple blog that will attract visitors much more than look too crowded. Crowded could have in terms of coloring is too much use of different colors or excessive use of widgets.

In addition to reducing the loading speed of a blog, use excessive widget also unsightly. By him that, this time My Backlink will give a tutorial use a simple widget recent posts.


Live Demo Here

Although simple, but it is quite spectacular recent posts because it can adapt to the theme of the blog.


READ ALSO:
How to Install Widget Recent Post Responsive Slider in Sidebar Blog

How to Make Recent Post Thumbnail Grid Display Responsive


How to make it simple, just follow the steps below.

1. First please copy and paste the following script into your sidebar blogspot. Figures 5 red marked simply replaced in accordance with the number of posts you want to display.


<script>
//<![CDATA[
function showlatestposts(json){document.write('<ul id="recent-posts">');for(var i=0;i<5;i++){var 
entry=json.feed.entry[i];var posttitle=entry.title.$t;var postsurl;if(i==json.feed.entry.length)break;for(var k=0;k<entry.link.length;k++){if(entry.link[k].rel=='alternate'){postsurl=entry.link[k].href;break;}}
document.write('<li class="recent-posts">');document.write('<a href="'+ postsurl+'" target ="_top" title="'+ posttitle+'">'+ posttitle+'</a>');document.write('</li>');}
document.write('</ul>');};

document.write("<scr" + "ipt type=\"text/javascript\" src=\"/feeds/posts/default?orderby=published&amp;alt=json-in-script&amp;callback=showlatestposts\"></scr" + "ipt>");
//]]>
</script>


2. After that, go to the Edit your HTML and paste the following code just above the </head>.


<style type='text/css'>
#recent-posts{
    width:auto;
    padding:0 10px;
    margin:0 auto;
    border:1px solid #ddd;
}
#recent-posts ul,#recent-posts li {
    list-style:none;
}
#recent-posts a{
    text-decoration:none;
}
#recent-posts li{
    border-top:1px solid #ddd;
    padding:6px 0
}
#recent-posts li:first-child{
    border-top:none;
}
</style>


3. After clicking Save and view the results on your blog.

Good Luck