Related Posts Widget with thumbnails for Blogger

One of the best way to increase page views and readership is using a related posts plugin. After the huge success of thumbnail realated posts widget by linkwithin, Aneesh developed the same widget using custom code which was indeed more reliable and totally customizable.


Now Like wise Wordpress Blogger Users can also have Related Posts with Thumbnails in Blogspot Blogs.To increase page views per user this widget can be very helpful, you can easily display the Related Posts with thumbnails below every post or below the post area with very ease.


Related Posts Widget with Thumbnails for Blogger

Here are the detailed steps to install the related posts widget for blogger with thumbnails


STEP #1
Log in to Blogger -> Layout -> Edit HTMLand select the tick-boxExpand Widget Templates
Then, find (CTRL+F) this code in the template:
</head>
And immediately before it, paste this code:

<!--Related Posts with thumbnails Scripts 24work.blogspot.com-->
<!-- remove --><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 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{
color:black;
}
#related-posts a:hover{
color:black;
}

#related-posts  a:hover {
background-color:#d4eaf2;
}
</style>
<script type='text/javascript'>
var defaultnoimage="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjiokJTqoa8K7bFpljYVi7rTCFf_ol_tYM4tHOZpnwCLbhHofR-OJT57eFVLcdweHFLdlc16es4khmpVn1zRp4DpnVy_dIPe3Wz-0EXO_-a3kcP2sk-iGiaY9Guqq2agpw6eTePInKlN9bi/s1600/no+Image+1.png";
var maxresults=5;
var splittercolor="#d4eaf2";
var relatedpoststitle="Related Posts";
</script>
<script src='http://24work.ucoz.com/24work-blogspot/related-posts/related-posts-with-thumbnails-for-blogger-pro.js' type='text/javascript'/>
<!-- remove --></b:if>
<!--Related Posts with thumbnails Scripts 24work.blogspot.com-->

STEP #2:
Now find this code in the template:

<div class='post-footer-line post-footer-line-1'/>
If you cant find it then try finding this one
<p class='post-footer-line post-footer-line-1'/>
Now immediately after any of these lines(whichever you could find) place this code snippet

<!-- Related Posts with Thumbnails Code Start 24work.blogspot.com-->
<!-- 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;'>
</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=5&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'/>
<!-- remove --></b:if> 
<b:if cond='data:blog.url == data:blog.homepageUrl'><b:if cond='data:post.isFirstPost'><a href='http://24work.blogspot.com'><img style="border: 0" alt="Related Posts Widget For Blogger with Thumbnails" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhN0RkKcvjWTKylvkeH6oB0H58NJEVqyWZGMQXPtauDBMEHLQ31mITBqSEFVmWlycnFupwuwn8Xc8opICRVEu4lsI42rmegYyunG2Q67IrQaimsTCI9eD8CjQC1Lzei3XKcpc7K121DowCU/s1600/blogger-widgets.png" /></a><a href='http://24work.blogspot.com' ><img style="border: 0" alt="Blogger Templates" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5HXphHyJHJTOBchoIw0BzPYjx205h1WRNBbvAu-eqYuNxfzzKocsZgCl9IiK3hBGo0cE1yWxQ7ELABAzY6MUBRfdyqfkCq-pKflfbSbAJ7ruHtd5UnWtgWHFdIopeIKHKF5TSyZKi82ld/s1600/blogger-templates.png" /></a></b:if></b:if>
<!-- Related Posts with Thumbnails Code End 24work.blogspot.com-->



Now Click Save Template

..................................................................................................................................
.......................................................................................................................................
..................................................................................................................................

You can adjust the maximum number of related posts being displayed by editing this line in the code.

var maxresults=5;
To edit the title of the widget you can change this line of code

var relatedpoststitle="Related Posts";
To change the default thumbnail, you can edit this line of code



var defaultnoimage="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjiokJTqoa8K7bFpljYVi7rTCFf_ol_tYM4tHOZpnwCLbhHofR-OJT57eFVLcdweHFLdlc16es4khmpVn1zRp4DpnVy_dIPe3Wz-0EXO_-a3kcP2sk-iGiaY9Guqq2agpw6eTePInKlN9bi/s1600/no+Image+1.png";

To Change the Colour of the Splitter Line , edit
var splittercolor="#d4eaf2";





Change https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjiokJTqoa8K7bFpljYVi7rTCFf_ol_tYM4tHOZpnwCLbhHofR-OJT57eFVLcdweHFLdlc16es4khmpVn1zRp4DpnVy_dIPe3Wz-0EXO_-a3kcP2sk-iGiaY9Guqq2agpw6eTePInKlN9bi/s1600/no+Image+1.png Code with The One You Like Bellow

https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjiokJTqoa8K7bFpljYVi7rTCFf_ol_tYM4tHOZpnwCLbhHofR-OJT57eFVLcdweHFLdlc16es4khmpVn1zRp4DpnVy_dIPe3Wz-0EXO_-a3kcP2sk-iGiaY9Guqq2agpw6eTePInKlN9bi/s1600/no+Image+1.png
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9VVGxDj_etWgTp0GaBGTg7VWYLBmIwkx3D9AcBBj_uhp__1nco8TlbzJhRGIsUmF3ruu4Pxy3qHxQJ_l5Vav1-CsHi4D5RJNZ7O77JWFR72tp9L_uPSQkAAMvm8B0o3A_WOdbPNP6Mguj/s1600/no+Image+2.png
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTwH2h7bi1wA_2HqfBtoqOmdXOuWdSleN0G0PbniWGIi0GHVdM-zVh6lmSAuHHam0ugxt0YPF_HyD8NB9n9GXgHaIMKLA6EsDBH5lkN9U-PsKS0qlerxouvxBfB8rOugKctJ6jJAx85DNh/s1600/no+Image+3.png
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjahi0RfTWD_JtBwzdpVAuOqc9dB5DB-xvQjk7ep44jYUSjRCv-9s7BPXrGpBlmj29MYHw5hkcdYqsLKNRfL6j0I3kGle1s_wr5hwE1S0tUZLn8kH_olUZDysyv1tbtER9qwTR68K5oyf4w/s1600/no+Image+4.png
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyDMUbkhXk87NaamOm1vOW3wQ4dM9819RFEkYlJazYKaRcqUFvOKHYgTWlQTeS7_8U2POq1SavUEqNybke4nu9UPm3xG-PsydnwZjoHBW24CjfcyUmWNI2mN-vTP3D8VCALO_RQn7JVBHG/s1600/no+Image+5.png
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqcCQl7TVrnnlMbxdJkug-tr0STkbEMtkTQzzKZrrzY-HpzrkHNwDOEZFdyJdcOCIGGNpfGZE6MbowjY88n5t6PPxyiA-YsD72Of8nYx2ybUm9qOSLHjaGb3ZmnAa-t6phxscc9DkAWFBq/s1600/no+Image+6.png
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjLSLV2_v3TzEEJXL4hpDRmU8Ib4wn2eP9j4I3UTNPbWEamfqswYStl1xFayTfDLaVcbXPeoi9a2QMNTMvXmFKv0O6KAVaymFEKdfczfhyphenhyphenGrTyQR1vre5xaBGgjZ0R4N-obdELX0LnEXcIX/s1600/no+Image+7.png
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiEOWsj6tvA-tagElVstjEnvrG99JSMTYCTiCu_x54Vqk-j2yXgwsMG9gAG8qc_BstJ_jyxI72p6YeWuewX6a7BK65F9V29GM9EPatP2xlmzhyal07K37peFEFoQ15yzE-LdejJYgsdOewI/s1600/no+Image+8.png
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjpMaWmhAv4-18vDC3Hh_UwXN7bEDfcWZvhJ7G7HvILiXDfX9ecQPfJCUhLlrK0EQquGoQ-ESIUEHGV8uzwqouzs88FAMiCQCnISMAhmtMA6tzpeGCsQTFhi227wl6BRdu_M593mdfj6Fm3/s1600/no+Image+9.png
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrD67eXNKigaZvm-GIUvAz6XXWMie-92fFmvON6zQgyEIHeSfmKyfPNP3tDu8D-5_qWHq2vRlaLZzM6ApXILWhoclaf-NgU_m5b02IcPlw45SzpDY4FjgwiAn7qhvwDyUS_xnv79dV3cqk/s1600/no+Image+10.png
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0TKW0DmXtiY8JbjqScj4y6fvwSDVncCNf3Vk59CECVH9rFvxyeiG8fhg9i2fE-7UrcFA_wmvnAd0JF_LtClzCz_9f3D1LNOaBFczc_ShawUwwj84kWT4GFT4KtQy0-VitPy7cBHjcHavh/s1600/no+Image+11.png
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqVsoSTmlsRGTBy-D6r8oGpZxaN09hxSNcM63OT2MwFplBh-TL7ybzSex6UuohO5_Gn6PAtYK7r4vHUnnItKdIWQdIMFTj-U4AnDpcFzGzkTfgdzMTiZuWa7iUiYC3Lizwh_ec8PEOA5Mw/s1600/no+Image+12.png
                         https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhe2Qto3rY6bPyhsmdz3D_BF6SQPtYjIazkwnNXzQwxeyZ29JutsBDrmZtBi2D3OPVa8flftSmbNSqcUKylhfy3x5JtQKV3nPFyM6869n6aYNDZU4mPu89OhsD7t5ZEzxChlzmN02polAmA/s1600/no+Image+13.png
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEinUjCO7dPfd46YAHXsHiUCWOd12buYP9erJcrf9l0atNIQmcH1uyoFMsUYSeMegIVN0IyLi0xK4-P7kcQFhPZq98HVfK2PbwLq3V3hoWWwbOox2Pz8OVBAaobdMDh8WHcWmcXcYe0k3QIv/s1600/no+Image+14.png
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjC-16fzBJbKg-__ReKLf3QAQrUSwh8C4gAJtovvMnkEhXwL_G_OuENZIlbydQIFqGa7dU7fy17okuLooml_4O25W8Swthyphenhyphenc46mOq_j9FPLyQv5Ub7wjFpeSPUa8N16uiOTKnkpmgyXfnw9/s1600/no+Image+15.png


Previous
Next Post »