Add Related Posts Widget With Thumbnails In Blogger

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.


Related Posts With Thumbnails Widget Demo



Live 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 == &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: 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: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 == &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'/>

  • Now save your template
  • Change maxresults=7 in red above to the number of posts you want displayed

Like it? Share it.

14 comments

30 May 2012 at 01:23 Author

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/

30 May 2012 at 03:13 Author

@Vidz ProThere was an error in the widget. Now i have remove that error. Reinstall this widget it will work fine

9 June 2012 at 09:04

hi,
i couldn't find the code "post-footer-line post-footer-line-1" in my blog's html. please help

9 June 2012 at 09:14 Author

@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

28 June 2012 at 14:37

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/

29 June 2012 at 02:17 Author

@Tiny Girl with Big Bag You have done something wrong. Try out with more attension

4 July 2012 at 23:35

I agree with your points, something may be changend then it will be effective. alcohol treatment clinic

14 July 2012 at 22:39

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.

15 July 2012 at 04:37 Author

@onlinestore1 You have done something wrong the widget works perfectly, try out with more attension

15 July 2012 at 19:50

@sonu
But I do not know any fix, can you view and edit for me, please?

16 July 2012 at 01:24

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?

16 July 2012 at 02:01 Author

@onlinestore1 I don't understand your problem, can you give me a demo

18 July 2012 at 02:46

@sonu
You can see here:
http://onlinestore062012.blogspot.com/
Thank a lot

18 July 2012 at 10:34 Author

@onlinestore1 You have not install this related posts, you have installed it from another blog

Click to Add a New Comment

  • If you're asking a question click on Subscribe By Email link, on the comment form, to be notified of replies.
  • Do NOT add links to the body of your comment as they will not be published.
  • Only the comments posted in ENGLISH will be approved.
  • If you have a problem check first the comments , maybe you will find the solution there.