How To Add Related Posts Widget With Thumbnails in Your Blog? |
Dear readers today's I'm administration a footfall by footfall action to add Related Posts accoutrement with Thumbnails in your Blogger/Blogspot blog. You can see the alive audience of this accoutrement beneath this column beneath branch ‘You Might Also Like’.
So aloof apprehend this column anxiously chase the simple step;
So aloof apprehend this column anxiously chase the simple step;
- Firstly backup your Blogger blog’s template.
- Then click on the Edit HTML to edit your blog’s template in the text editor.
- Find the below given code (Use Ctrl + F): ]]></b:skin>
- Copy and Paste the below given codes just above the founded code
Look At Below Screen Shot;
--------------------------------------------------------------------------------------------------------------------
<!--Related Posts with thumbnails Scripts and Styles Start-->
<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-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>
<!-- www.hififun.net -->
<script type='text/javascript'>
var defaultnoimage="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwqyNrP1RfjhiTKdhuC921q3cZ7mxbBm_hVgD7RXWonkGASuCw7-KlSFY0CjTZQaq3R-sJ8ZIeBzpYjVjauhcFvg_v3SstTFl-7watZfNBfst3rKiQPB-JUiFtNnjrxDCKDrc_pV1p1BY/s1600/no_image.jpg";
var maxresults=5;
var splittercolor="#DDDDDD";
var relatedpoststitle="You Might Also Like:";
</script>
<script src='https://googledrive.com/host/0B-dv4rsl5_uZXzg0Z1FOVWhLSFk' type='text/javascript'/>
</b:if>
<!--Related Posts with thumbnails Scripts and Styles End-->
<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-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>
<!-- www.hififun.net -->
<script type='text/javascript'>
var defaultnoimage="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwqyNrP1RfjhiTKdhuC921q3cZ7mxbBm_hVgD7RXWonkGASuCw7-KlSFY0CjTZQaq3R-sJ8ZIeBzpYjVjauhcFvg_v3SstTFl-7watZfNBfst3rKiQPB-JUiFtNnjrxDCKDrc_pV1p1BY/s1600/no_image.jpg";
var maxresults=5;
var splittercolor="#DDDDDD";
var relatedpoststitle="You Might Also Like:";
</script>
<script src='https://googledrive.com/host/0B-dv4rsl5_uZXzg0Z1FOVWhLSFk' type='text/javascript'/>
</b:if>
<!--Related Posts with thumbnails Scripts and Styles End-->
---------------------------------------------------------------------------------------------------------------------
- After that find this code: <data:post.body/>
- Place the code given below just below it to show related posts after your blog post.
Look At Below Screen Shot;
--------------------------------------------------------------------------------------------------------------------- <!-- Related Posts with Thumbnails Code Start-->
<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=6"' type='text/javascript'/></b:loop>
<!-- www.hififun.net -->
<script type='text/javascript'>
removeRelatedDuplicates_thumbs();
printRelatedLabels_thumbs("<data:post.url/>");
</script>
</div><div style='clear:both'/>
</b:if>
<b:if cond='data:blog.url == data:blog.homepageUrl'><b:if cond='data:post.isFirstPost'>
<a href='http://www.hififun.com'><img alt='Real Tips and Tricks' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEibVqioijl5MPc5fGqvD7UtD_OGXxWvq825mrAmJa3XpGcVHO6eluZmqWOcFLB0Qk8HVdtn_mTK1qMgX8Jtj55ftICVfjeyWIlMYy_Ug3yu9Tp9S5bwnchf1hKq2clZ_fnZ7cq1k7X4Va4G/s1600/best+blogger+tips.png'/></a>
</b:if></b:if>
<!-- Related Posts with Thumbnails Code End-->
<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=6"' type='text/javascript'/></b:loop>
<!-- www.hififun.net -->
<script type='text/javascript'>
removeRelatedDuplicates_thumbs();
printRelatedLabels_thumbs("<data:post.url/>");
</script>
</div><div style='clear:both'/>
</b:if>
<b:if cond='data:blog.url == data:blog.homepageUrl'><b:if cond='data:post.isFirstPost'>
<a href='http://www.hififun.com'><img alt='Real Tips and Tricks' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEibVqioijl5MPc5fGqvD7UtD_OGXxWvq825mrAmJa3XpGcVHO6eluZmqWOcFLB0Qk8HVdtn_mTK1qMgX8Jtj55ftICVfjeyWIlMYy_Ug3yu9Tp9S5bwnchf1hKq2clZ_fnZ7cq1k7X4Va4G/s1600/best+blogger+tips.png'/></a>
</b:if></b:if>
<!-- Related Posts with Thumbnails Code End-->
---------------------------------------------------------------------------------------------------------------------
- Save your template by clicking on the Save button.
- Done!