How to Add Related Post Widget with Thumbnails on 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 rate will decrease gradually.


This widget will show beneath every post(s) on your blog. Go through the steps below to make this widget work on your blogger blog.

How to redirect 404 Error Page to Homepage in Blogger

Related Posts Widget with Thumbnails for Blogger

1.Log in to your Blogger Dashboard and Navigate to Template. Then use (CTRL+F) to find </head> in your templates.

2.Paste the code below before the closing </head> tag.

<!--Related Posts with thumbnails Scripts>
<!-- remove --><b:if cond='data:blog.pageType == &quot;item&quot;'>
<style type="text/css">
#related-posts {

#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{
#related-posts a:hover{

#related-posts  a:hover {
<script type='text/javascript'>
var defaultnoimage="";

var maxresults=5;

var splittercolor="#d4eaf2";

var relatedpoststitle="Related Posts";

<script src='' type='text/javascript'/>
<!-- remove --></b:if>
<!--Related Posts with thumbnails Scripts>

3.Now find any of this code in your template:

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

Now immediately after any of these lines (whichever you could find) place the code snippet below

<!-- 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;'>
<script expr:src='&quot;/feeds/posts/default/-/&quot; + + &quot;?alt=json-in-script&amp;callback=related_results_labels_thumbs&amp;max-results=5&quot;' type='text/javascript'/></b:loop>
<script type='text/javascript'>
</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=''><img style="border: 0" alt="Related Posts Widget For Blogger with Thumbnails" src="" /></a><a href='' ><img style="border: 0" alt="Blogger Templates" src="" /></a>
<!-- Related Posts with Thumbnails Code End>

4. Now Save your template.

Widget Configuration

1. To change the total no of posts displayed in your blog posts, Edit the following line of code.

var maxresults=5;

2. To Edit the title of the widget, change the following line of code.

var relatedpoststitle="Related Posts";

That’s all.

I love sharing my knowledge with others. Feel free to contact me with any questions you may have. Please subscribe to the newsfeed and get updates through email, share this article with friends, or leave a comment below. New users can read about me HERE

Share this on:Share on Facebook0Tweet about this on TwitterShare on Google+1Pin on Pinterest0Share on StumbleUpon0Digg this


  1. Daniel Nicholas says:

    It worked fine! only that it;s not showing on PC view… thanks man.

    • Daniel Nicholas, after which of these code <p class='post-footer-line post-footer-line-1'> Or <div class='post-footer-line post-footer-line-1'> or <div class='footer'> did you place the code given above?

  2. Hello bro… it working very fine,, but when someone click on any related topics on mobile itwill show pc view can you please tell me what to do that i can redirect the topic link to /?m=1 please here is my mail: [email protected],com

  3. Thanks! works wonderful.
    Was wandering how can i make the related posts bigger . They are very small…

  4. LabLance says:

    It working on my blog

  5. I’ve tried it, but after a few days it disappears suddenly. I do not know for what,

  6. I followed all the instruction, I have also a label on my post.. why it is not working for me..

  7. @lilacglasses, you can hire me to implement the code on your blog. Contact me through admin(at)justnaira(dot)com

  8. Nothing that i do seems to work. It has driven me crazy!!!! i have done this many times, tried different codes that i found on the internet, tried linkwithin but nothing works! what can i do? what is wrong?

  9. Worked perfectly well for me. One thing I like about the related posts widget is the default “No image” image. But the bottom line is I like everything about the related posts widget. Thanks Fapohunda.

  10. thank you for this widget

  11. Gul Ahmed @Earn Money Online says:

    Great Tutorial Thanks For It..

  12. thanks very nice post

  13. @Gurpreet singh guri, you’re welcome

    @Mireille, the codes must be in your templates. May be you don’t tick the Expand Widget Templates.

  14. hi! I’m pretty new at this and kinda clueless… I tried following your steps . I founde the head but I can’t find the other 2 codes..what am I doing wrong?

  15. Gurpreet singh guri says:

    thanx for posting it

  16. @jayr, you’re welcome

  17. Thanks!

Tell us what you're thinking...

All comments are moderated.

* Denotes required field.