Related Posts Widget For Blogger

10:32:00 PM |

This widget will show related posts(You might like also...) section below every post page.The related posts titles are fetched from current post page label[s]. 
This Widget also increases SEO and Pageviews of your blog. 



How To Install
There are three sections in this widget 1)CSS 2)JavaScript 3)Widgetcode
NOTE: Please BackUP your template Before installing
1.Login to your blogger 
2.Then Go to Layout > Edit HTML 
3.Check Expand Widgets
4.Now Add Bellow CSS code Right before ]]></b:skin> tag


#related-posts {
float:center;
text-transform:none;
height:100%;
min-height:100%;
padding-top:5px;
padding-left:5px;
}
#related-posts .widget{
padding-left:6px;
margin-bottom:10px;
}
#related-posts .widget h2, #related-posts h2{
font-size: 1.6em;
font-weight: bold;
color: black;
font-family: Georgia, &#8220;Times New Roman&#8221;, Times, serif;
margin-bottom: 0.75em;
margin-top: 0em;
padding-top: 0em;
}
#related-posts a{
color:blue;
}
#related-posts a:hover{
color:blue;
}
#related-posts ul{
list-style-type:none;
margin:0 0 0px 0;
padding:0px;
text-decoration:bold;
font-size:15px;
text-color:#000000
}
#related-posts ul li{
background: url(http://3.bp.blogspot.com/_nDNgmK8FIyI/TBZPJNFuX6I/AAAAAAAAAHE/GMkhjBBbwLk/s320/w2barrow.gif) no-repeat scroll left center transparent;
display:block;
list-style-type:none;
margin-bottom: 13px;
padding-left: 30px;
padding-top:0px;
}

5. Now add Bellow JavaScript Right before </head> tag


<script type='text/javascript'>
var relatedpoststitle="Related Posts";
</script>
<script src='http://bloggerblogwidgets.googlecode.com/files/Related-Posts.js' type='text/javascript'/>

# If you want to change the title of your widget you can edit Bellow line in above code

var relatedpoststitle="Related Posts";

6.Now find Any one of Bellow lines 

<div class='post-footer-line post-footer-line-1'>
<p class='post-footer-line post-footer-line-1'>

7.Now add Bellow Widget code just after it.

<b:if cond='data:blog.pageType == &quot;item&quot;'>
<div id='related-posts'>
<b:loop values='data:post.labels' var='label'>
<b:if cond='data:label.isLast != &quot;true&quot;'>
</b:if>
<b:if cond='data:blog.pageType == &quot;item&quot;'>
<script expr:src='&quot;/feeds/posts/default/-/&quot; + data:label.name + &quot;?alt=json-in-script&amp;callback=related_results_labels&amp;max-results=5&quot;' type='text/javascript'/></b:if>
</b:loop>
<script type='text/javascript'>
var currentposturl=&quot;<data:post.url/>&quot;;
var maxresults=5;
removeRelatedDuplicates(); printRelatedLabels();
</script>
</div>
</b:if>

var maxresults=5;
# Change maxresults you want to be show 

Take a look at your post pages. It must have Related posts widget.
You can Customize your widget by changing CSS.