*Login to your blog.
*Click on blogger dashboard and then click on templates.
*Now click on Edit HTML.
*Press (CTRL+F).
*Now search for </head>
*Now Copy the code given below.
*And Paste it above </head> Tag.
<!--Related Posts with thumbnails Scripts and Styles Start--> <!-- remove --><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: 18px; letter-spacing: 2px; font-weight: bold; text-transform: none; color: #5D5D5D; font-family: Arial Narrow; margin-bottom: 0.75em; margin-top: 0em; padding-top: 0em; } #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="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjkHFLPAXlfuDsjoDTa5rKzdspnMD3AH7Nj4R_BA9MEYJpRdLXlNdd-Ju9usnbXvHmDaqdZHTDySOKo48-WwOCFZ6aVfuD-Ht-Qk9dkZEEliYabSHd4uCIPe2gx4YS4wd9dEWHELlKrzlUk/s1600/no_image.jpg"; var maxresults=4; var splittercolor="#DDDDDD"; var relatedpoststitle="Related Posts"; </script> <script src='http://helplogger.googlecode.com/svn/trunk/related-posts-with-big-thumbnails.js' type='text/javascript'/> <!-- remove --></b:if> <!--Related Posts with thumbnails Scripts and Styles End-->
*If you want to increase or decrease your number of post from 4 or more/less then you can change the value of var maxresults=4 to your desire number of value.
*If you want to display the Widget also on your home page then remove the orange script from the above code.
*Now search for the script given below.
<div class='post-footer'>
Note:The above script that is <div class='post-footer'> is 2 time in blogger templates.So please copy the code given below and paste it after each script that is <div class='post-footer'>
*Here is the code.
<!-- Related Posts with Thumbnails Code Start--> <!-- remove --><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=4"' type='text/javascript'/></b:loop> <script type='text/javascript'> removeRelatedDuplicates_thumbs(); printRelatedLabels_thumbs("<data:post.url/>"); </script> </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='http://counterstriq.blogspot.com'><img alt='Blogger Tricks' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixQkh8_Rok9pAgVQirH8QSzqb6pnYRwtQn7A5iYzLRv_93vxz6V1z3TvZ2H7XyINHlFV2d42fZaYze44OjHwvkblDTZmYhio7s4WR85-lzboN-SRY7x6EfULavjTSOe7tEASjNXN048kyQ/s1600/best+blogger+tips.png'/></a> </b:if></b:if> <!-- Related Posts with Thumbnails Code End-->
*Please change the name written in green with your blog name.
*If you want to display the related posts more than 4 then change the number of posts from 4 to your desire number of post.(Written in the script in red)
*Similarly if you want to show the related post widget on your home page then remove the orange script in the code.
*Now save the template and enjoy it.
*Please like.share and comments.Thanks.
0 comments:
Post a Comment