How To Add Related Posts Widget For Blogger With Thumbnails




Now I adjust this tutorial how to add related post widget with thumbnail on BlogSpot blog. Related post shown to same labels or categories. Increase your visitors you can adjust this widget on your blog. This is very simply tutorial.

How To Add Related Posts Widget For Blogger With Thumbnails


Stylish Related Posts Widget with Thumbnail for Blogger Blog:

  • Firstly Login to your Blogger Dashboard click here
  • Select your blog and click on right side bar
  • Select Template on drop down menu
Stylish Related Posts Widget with Thumbnail for Blogger Blog

Add CSS For Related Posts widget to Blogspot blog:

Now create a backup of your blogger templates. Because if you have any error after updating your blog. You can restore it. So click on Backup / Restore button and download Full Template. 
  • Click on "Edit HTML" button
Add CSS For Related Posts widget to Blogspot blog
  • Click anywhere inside the code area and press the CTRL + F keys on your keyboard to open the code search box.Type </head> inside the search box then hit Enter on keyboard to find it:
  • Now past the below CSS code before </head> code
Add Related Posts Widget to Blogger/Blogspot

CSS code- Related Posts or you may like also blogger widget:

<!--Related Posts with thumbnails by help2blogging.blogspot.com Start-->
<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-text {
font-size: 0.9em !important;
font-weight: 700 !important;
line-height: 1.45em !important;
font-family: Helvetica,Arial,sans-serif !important;
width: 100px;
padding-left: 3px;
height: 105px;
border: 0pt none;
margin: 3px 0pt 0pt;
}
#related-posts h2{
font-family:verdana !important;
font-size:18px !important;
font-weight:bold;
margin:9px 0px !important;
color:#666 !important;
border-bottom:0px !important;
border-top:0px !important;
}
#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://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdHgsn7z4B-2KGyyxdNRSzBhfhTlyQBmN2k6rCYsdVQAeRN5T8UxIv42XzMCy_X5Qfb9CWw0zMFHIcYxRI1wrjmYw0Ehg6bXcVyxKbkJaZcn5NDD_WJmdXu9oADRbXabflNcMnUuge-EM/s1600/no_image.jpg&quot;;
var maxresults=5;
var splittercolor=&quot;#DDDDDD&quot;;
var relatedpoststitle=&quot;You Might Also Like:&quot;;
</script>
<script src='https://googledrive.com/host/0B-dv4rsl5_uZXzg0Z1FOVWhLSFk' type='text/javascript'/>
</b:if>

<!--Related Posts with thumbnails by help2blogging.blogspot.com End-->
Tips: Here show the number of post 5. But you can change this number that you want to show related post results your blog.

Add HTML for Related Posts with image thumbnail:

  • Now find again all <div class='post-footer'> in code area
  • Copy the bellow code and paste it before all <div class='post-footer'> tag.
<!--Related Posts with thumbnails by help2blogging.blogspot.com Start-->
  <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'/>
</b:if>
<b:if cond='data:blog.url == data:blog.homepageUrl'><b:if cond='data:post.isFirstPost'>
</b:if></b:if>

<!--Related Posts with thumbnails by help2blogging.blogspot.com End-->
  •  Save your template

That’s all!

˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜------------------------------------------------------------

If you have any question and suggestions related blogger
Please don't hesitates just sent email or leave comment
Thanks to follow this tutorial
Best regards
help2blogging team

Add HTML for Related Posts with image thumbnail-help2blogging logoRelated Posts or You may like also widget with image thumbnail-help2blogging smile logo

Comments