Related post widget with thumbnails is a good widget all bloggers ought to have on their blog since it increases page views & readership while your blog traffic bounce ratio will decrease gradually. Displaying the links to related posts along with a thumbnail of the corresponding post will help you increase the page views/user .Users will be tempted to go for the related posts when they are presented attractively with thumbnails.
Live Demo
Related Posts With Thumbnails Widget Demo
How To Add Related Posts With Thumbnails Widget To Blogger
- Go to Blogger Dashboard
- Click on DropDown Menu and select Template
- Backup your Template before making any changes to your blog
- Now Click on Edit HTML --> Proceed --> Expand Widget Templates
- Press Ctrl + F and search the code shown below
</head>
- Now replace it with the code shown below
<b:if cond='data:blog.pageType == "item"'>
<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: 1.6em;
font-weight: bold;
color: black;
font-family: Georgia, “Times New Roman”, Times, serif;
margin-bottom: 0.75em;
margin-top: 0em;
padding-top: 0em;
}
#related-posts a{
color:black;
}
#related-posts a:hover{
color:black;
}
#related-posts a:hover {
background-color:#d4eaf2;
}
</style>
<script type='text/javascript'>
var defaultnoimage="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjYIkepgbaxKD5WQdoDdZi-N1j7hGTOmYIsegZ7J7zL3_CMPK9-x03eKOsCiPOPVjh8GBsuZEbzKVU9naRuf2TxtqUluTnvS3ULzNrkZCsUbowILkXf-kZFqRmtjtN0Io3cHR4cPpO-cCA/s1600/noimage.png";
var maxresults=7;
var splittercolor="#d4eaf2";
var relatedpoststitle="Related Posts";
</script>
<script src='http://latest-hacks.googlecode.com/svn/gadgets/relatedpostwiththumb/related.js' type='text/javascript'/>
</b:if>
</head>
<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: 1.6em;
font-weight: bold;
color: black;
font-family: Georgia, “Times New Roman”, Times, serif;
margin-bottom: 0.75em;
margin-top: 0em;
padding-top: 0em;
}
#related-posts a{
color:black;
}
#related-posts a:hover{
color:black;
}
#related-posts a:hover {
background-color:#d4eaf2;
}
</style>
<script type='text/javascript'>
var defaultnoimage="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjYIkepgbaxKD5WQdoDdZi-N1j7hGTOmYIsegZ7J7zL3_CMPK9-x03eKOsCiPOPVjh8GBsuZEbzKVU9naRuf2TxtqUluTnvS3ULzNrkZCsUbowILkXf-kZFqRmtjtN0Io3cHR4cPpO-cCA/s1600/noimage.png";
var maxresults=7;
var splittercolor="#d4eaf2";
var relatedpoststitle="Related Posts";
</script>
<script src='http://latest-hacks.googlecode.com/svn/gadgets/relatedpostwiththumb/related.js' type='text/javascript'/>
</b:if>
</head>
- Now find the code shown below using Ctrl + F
<div class='post-footer-line post-footer-line-1'>
- Now replace it with the code shown below
<div class='post-footer-line post-footer-line-1'>
<b:if cond='data:blog.pageType == "item"'>
<div id='related-posts'>
<b:loop values='data:post.labels' var='label'>
<b:if cond='data:label.isLast != "true"'>
</b:if>
<script expr:src='"/feeds/posts/default/-/" + data:label.name + "?alt=json-in-script&callback=related_results_labels_thumbs&max-results=6"' type='text/javascript'/></b:loop>
<script type='text/javascript'>
removeRelatedDuplicates_thumbs();
printRelatedLabels_thumbs("<data:post.url/>");
</script>
</div><div style='clear:both'/>
<b:if cond='data:blog.pageType == "item"'>
<div id='related-posts'>
<b:loop values='data:post.labels' var='label'>
<b:if cond='data:label.isLast != "true"'>
</b:if>
<script expr:src='"/feeds/posts/default/-/" + data:label.name + "?alt=json-in-script&callback=related_results_labels_thumbs&max-results=6"' type='text/javascript'/></b:loop>
<script type='text/javascript'>
removeRelatedDuplicates_thumbs();
printRelatedLabels_thumbs("<data:post.url/>");
</script>
</div><div style='clear:both'/>
- Now save your template
- Change maxresults=7 in red above to the number of posts you want displayed
14 comments
hi sonu I have tried "related Post" so many times, but doesnot work. How to fix it? please check my site http://www.vidzpro.com/
@Vidz ProThere was an error in the widget. Now i have remove that error. Reinstall this widget it will work fine
hi,
i couldn't find the code "post-footer-line post-footer-line-1" in my blog's html. please help
@Rana Waheed Find this code <data:post.body/> in your template and add the code just below it. You will find <data:post.body/> two times add the code after the second one
Hi, I am trying to install this but my site does not let me save this HTML.. can you maybe help why? Thanks a lot. http://tinygirlwithbigbag.blogspot.hu/
@Tiny Girl with Big Bag You have done something wrong. Try out with more attension
I agree with your points, something may be changend then it will be effective. alcohol treatment clinic
Hi, I have tried many time, but it doesn't work, plz help me?
My site. http://onlinestore062012.blogspot.com/
Thank you very much, as soon as.
@onlinestore1 You have done something wrong the widget works perfectly, try out with more attension
@sonu
But I do not know any fix, can you view and edit for me, please?
Photos in my blog have not uploaded directly through blogger, but I just take the path should not display image thumbnails. So, how can fix this problem?
@onlinestore1 I don't understand your problem, can you give me a demo
@sonu
You can see here:
http://onlinestore062012.blogspot.com/
Thank a lot
@onlinestore1 You have not install this related posts, you have installed it from another blog
Click to Add a New Comment