How to add related Posts widget in blogger with Thumbnails

If you want to add Related post thumbnails as below pic..
just follow simple steps to add widget...

Adding the Related Posts widget to Blogger

1.Log in to Blogger account and go to Template>Edit HTML as below pic...


2.Click anywhere inside the code area and press ctrl + F to open search box as below Pic

3.Type inside the search with this cose </Head> and Press enter to find out the Code area to paste Code.



4.Copy the Below code and paste under </Head> Tag as above pic.

<!--Related Posts with thumbnails Scripts and Styles Start-->
<style type='text/css'>
#related-posts{float:left;width:auto;}
#related-posts a{border-right: 1px dotted #eaeaea;}
#related-posts a:hover{background: #EEEEEE;}
#related-posts h2{margin-top: 10px;background:none;font:18px Oswald;padding:3px;color:#999999; text-transform:uppercase;}
#related-posts .related_img {margin:5px;border:2px solid #f2f2f2;width:130px;height:100px;transition:all 300ms ease-in-out;-webkit-transition:all 300ms ease-in-out;-moz-transition:all 300ms ease-in-out;-o-transition:all 300ms ease-in-out;-ms-transition:all 300ms ease-in-out;-webkit-border-radius: 5px;  -moz-border-radius: 5px; border-radius: 5px; }
#related-title {color:#666;text-align:center;padding: 0px 5px 10px;font-size:12px;width:110px; height: 40px;}
#related-posts .related_img:hover{border:2px solid #E8E8E8;opacity:.7;filter:alpha(opacity=70);-moz-opacity:.7;-khtml-opacity:.7}</style>
<script src='http://helplogger.googlecode.com/svn/trunk/relatedposts.js' type='text/javascript'/>
<!--Related Posts with thumbnails Scripts and Styles End-->

Note: If you want to chage the value of Related Posts Colour & size just change the value in code at red colour area.
If you want to chage related posts box size just change the value on green colour area.

5. next just findout this code with typing in search box...
<div class='post-footer'>


Copy Below code and paste above this code <div class='post-footer'> as above pic

<!-- Related Posts with Thumbnails Code Start-->
<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=3&quot;' type='text/javascript'/></b:loop>
<script type='text/javascript'>
var currentposturl=&quot;<data:post.url/>&quot;;
var maxresults=3;
var relatedpoststitle=&quot;<b>Related Posts:</b>&quot;;
removeRelatedDuplicates_thumbs();
printRelatedLabels_thumbs();
</script>
</div><div class='clear'/><div style='font-size: 9px;float: right; margin: 5px;'><a href='http://helplogger.blogspot.com/2012/03/how-to-add-related-posts-widget-to.html' rel='nofollow' style='font-size: 9px; text-decoration: none;'>Related Posts Widget</a></div>
<!-- Related Posts with Thumbnails Code End-->

Change the value maxresults=for how many posts want show in related posts and save template.
now your related post widget ready save template ans see the result.




Post a Comment

Whatsapp Button works on Mobile Device only