Related Posts Widget | How To Add Related Posts Widgets

RELATED POSTS WIDGET FOR BLOGGER


Here comes a mind blowing hack for exhibiting related posts under each and every post of your blogger blog!  

 
With this hack trick you can make your visitors spend longer time on your blog because, you know, when they will see the posts related to their interest they will be bound to spend time reading those posts too.


If a visitor stays on your blog, he/she will surely get to know you and then you can expect them to leave some comment. The related posts are chosen from the same category/tag/label.


ADD RELATED POSTS WIDGET TO BLOGGER




Simply follow the following steps:


Step1:- Go to Blogger Dashboard >> Template >> Edit HTML;

Step2:- Check the "Expand Widgets Template" box;

Step3:- Search (Ctrl + F) for the following code:

</head>

Step4:- Copy and Paste the following code just above/before  </head>

 <!--Related Posts with thumbnails Scripts and Styles Start-->
<!-- remove --><b:if cond='data:blog.pageType == &quot;item&quot;'>
<style type='text/css'>
#related-posts {
float:center;
text-transform:none;
height:100%;
min-height:100%;
padding-top:5px;
padding-left:5px;
}

#related-posts h2{
font-size: 18px;
letter-spacing: 2px;
font-weight: bold;
text-transform: none;
color: #5D5D5D;
font-family: Arial Narrow;
margin-bottom: 0.75em;
margin-top: 0em;
padding-top: 0em;
}
#related-posts a{
border-right: 1px dotted #DDDDDD;
color:#5D5D5D;
}
#related-posts a:hover{
color:black;
background-color:#EDEDEF;
}
</style>
<script type='text/javascript'>
var defaultnoimage=&quot;https://picasaweb.google.com/lh/photo/3dQ15Bo3ZcQF57IusqBtBP62gILMQY-aVMprzsXDb2s?feat=directlink&quot;;
var maxresults=5;
var splittercolor=&quot;#DDDDDD&quot;;
var relatedpoststitle=&quot;Related Posts&quot;;
</script>
<script src='http://helplogger.googlecode.com/svn/trunk/related-posts-with-big-thumbnails.js' type='text/javascript'/>
<!-- remove --></b:if>
<!--Related Posts with thumbnails Scripts and Styles End-->


Hints:
# To change my picture replace the URL in Green
# To display more than 5 posts just replace 5 with your desired number
# If you want the Related Posts to be shown on your homepage also, remove the code in Red


Step5:- Find the following code:

 <div class='post-footer'>

Step6:- Copy and Paste the following code just above it:

<!-- Related Posts with Thumbnails Code Start-->
<!-- remove --><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>
<script expr:src='&quot;/feeds/posts/default/-/&quot; + data:label.name + &quot;?alt=json-in-script&amp;callback=related_results_labels_thumbs&amp;max-results=6&quot;' type='text/javascript'/></b:loop>
<script type='text/javascript'>
removeRelatedDuplicates_thumbs();
printRelatedLabels_thumbs(&quot;<data:post.url/>&quot;);
</script>
</div><div style='clear:both'/>
<!-- remove --></b:if>
<b:if cond='data:blog.url == data:blog.homepageUrl'><b:if cond='data:post.isFirstPost'>
<a href='http://helplogger.blogspot.com'><img alt='Blogger Tricks' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjpwhZ6IKCVRkgX4ttXh_JUUq6B-jToPcz-80RN4CZQQb6uWgtS7qpFtum4IB6RRf_ajmr46gnk1URBJpVyRglpdhgkxwAJ7R7Gk3Rtq7OyH6udXzyl7pkEozaERJOuDCMqau6hPyNjsvm9/s1600/best+blogger+tips.png'/></a>
</b:if></b:if>
<!-- Related Posts with Thumbnails Code End-->

Hints:
# Replace 6 with your desired number if you want more than 6 posts to be displayed.
# Remove the code in Red if you would like related posts to be shown on the homepage too.


Last Step:- Save the Template


Enjoy the Widget!!!

Credit goes to : bloggerpluggins.org . Modified by me.
Image by: David Buzzard Photography

Comments

You are welcome to share your ideas with us in comments!