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/AVvXsEjGqv6m9Lk3oE-DlwCF-KU2twpygzAcNpRrN6CMwVVOCaIDmwBXM289u6nGjfpf7LQTxiNXR6HpVisCMf45Hgutf_l6YpgEWZtzxLLXlNfPCvOP25LLI30hkpx9PnAnXdeBaC49jcrs-AfM/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/AVvXsEjJdOoB6l4jLhKJOn1h2ZM-EAnDIaJ-9a62KvoiIXjqMOfF9uD_rtnDk66o2pJRG88c9PZlDCpgJ4ilEuH_IgWe41aenFg7-a5CLM3jpjyI4F-Q4ZG2LeL3jhruutYb8tzjhPPx0-xm-hrL/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/AVvXsEgQQc6OCja3eoysXan8TNVKye2fugQ8ER9mikv9m1ArLgI87NAc5y4iAGxcWoIvZFOeoMdrtLA3uZhb_ZOrgseJ5e0nq4b4hetswePDrqfKiFNail80eDam5jKCvoxwu3RfwNzOGXsfoesN/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/AVvXsEjGqv6m9Lk3oE-DlwCF-KU2twpygzAcNpRrN6CMwVVOCaIDmwBXM289u6nGjfpf7LQTxiNXR6HpVisCMf45Hgutf_l6YpgEWZtzxLLXlNfPCvOP25LLI30hkpx9PnAnXdeBaC49jcrs-AfM/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/AVvXsEjGqv6m9Lk3oE-DlwCF-KU2twpygzAcNpRrN6CMwVVOCaIDmwBXM289u6nGjfpf7LQTxiNXR6HpVisCMf45Hgutf_l6YpgEWZtzxLLXlNfPCvOP25LLI30hkpx9PnAnXdeBaC49jcrs-AfM/s1600/no+Image+1.png Code with The One You Like Bellow

https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGqv6m9Lk3oE-DlwCF-KU2twpygzAcNpRrN6CMwVVOCaIDmwBXM289u6nGjfpf7LQTxiNXR6HpVisCMf45Hgutf_l6YpgEWZtzxLLXlNfPCvOP25LLI30hkpx9PnAnXdeBaC49jcrs-AfM/s1600/no+Image+1.png
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh23FZ2_Fzk-8CrrPLwREU4RmxyV9BKJbU4jQQykTmWLspUEoFXvSWhxfoVaPMwY_7uL65VKNP9T0njCmRH8QfwVzf2XMGiCDxgDIIoq5XgN_K8oOEdVSjgn4MltytvVBbqd5QuLwEDkmqT/s1600/no+Image+2.png
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjW4TdlKT0VoJycxz02fEEF53LNlnJX2QSpWA2aBdYOCXldoOHqkgmtj61NlgoeFpxHzRWyxZVA04P8f4NtuWx5cej4Sd9zytw9Pb0CTpSQwtqzHeRpSuGcKwD4tqAmrmdn04hPeuBE7mJl/s1600/no+Image+3.png
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgfWspR-rcZCKiTMA0KjE7tkV-iOlX_WYgGmkoj80wPwjJnY63jg_r1e9mDgXO3UZZu7L-5G1nn0YZBEdN46UHwkFnV6xlQaX2csa4mwzo7fm6SSayKXQhbslDMFyOw1VhwirV-lsngsDzn/s1600/no+Image+4.png
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8j5yhKQAswKsWUsC9p_wwUUBdk3DG9a4Fh6m5huO3n2nCOAgCL3B61ryowZBSIMAq1fAbUuo-oODAqeWWaKvi_rzhUT-RpLD04HyrdTknCh7nFUVIkBadrxFz_A518WE73HCtxeOLE6FQ/s1600/no+Image+5.png
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKoSEOEc_-zfDVrFOkvwcKfCsei0nX0xcfubKi5UIJua37ocC7WIaa7L1pjngacAMrEOqrpYoBG3mpXFkC3eFwhYfsm17QzMfVTO3YM0UoKSadNHkV6eyADVR4OPGM8Hh42CKoTVDjPBJx/s1600/no+Image+6.png
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjaBZltj0EJiV6D_KIlGkRJ0PuLl7y2KSxxLAJP4Z3SNZp2w2TZcTnhUdIkG5j71bTiZHJhwKoQHkWLUUqSs5na_ednaMglBUCuX2ui2j0TG3rbpRJ-TUUKHzoG-uayCzms-ryewepR3BRR/s1600/no+Image+7.png
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6t5fZrWR6Lybxh-TSqBVBE_NDFNi_I49ylcpx9cVOZIoHu_arJvsRXN_-vJKbWelQKIHcMC9pNy7wgq5G8inhFLZYPToNp7dlWPMUp69k-O9WyCSQswOPq8R2Yw63am3kkwNiDM2CIue7/s1600/no+Image+8.png
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgX1Srpplz-aWn6wfcNP5DxQswG7W1b8-WruW_9zTiSGApDdDO16CUYvk8DFcUYaYIEPfYE_ycdburVGY6Unr70vfOCLe_chNTo-9OH3N1dBOsjNxiUXIKrPJ3i_zLIqhMQu_JVPGRiVi8A/s1600/no+Image+9.png
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiTI4lHhNkeTQtgaj4FJtz0XHV6eheKi6LbLxWsGvVbpNsDqPNiE_gRlvuyc5e3nqytWgxrFThzsBZrh0KMUYuenTtU8zh18IKSBBN7CEdSypFpX0eTLP3Oy3Y7yhHKlg4Hxi4upNpl_8WB/s1600/no+Image+10.png
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZgfPJXCQxUc-VHUQGa4XD5hx5AKboX7KgcDDtlYmnTF-RDdHJMV6Ps-HGdkxUEjwzXjTsNefudx3dPpMH5UTMF1sIojlfP0G5iszXHInbRhHxrESP1vsy9O2ft2w6JTWvl6UfKIAhM9Ey/s1600/no+Image+11.png
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZaAJovYfcffPxphocsAYBNLD3QWEheB01NL4Z7Y2rs-Dt4RSMCplfJZmlSMtEl7hyycf9VvjTNOwPhxV-KqXirje7HshFAzKd-bMCDkKm7NZPS51vEmUBHcWUDAWgwrZphxI03AktYgxS/s1600/no+Image+12.png
                         https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9n_uNkkOFUhzBDDsneCqjOau2bncMR8EP99A3AMm2u2QpJElaV-ZdAKB2nywiaZL_6h9jD8Di08iR61SGDjdv1r406oFEOh6BWOzwsu0WcHJumSGjdUIrq65emmAg2s2KItlYWgWEYepm/s1600/no+Image+13.png
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg6hGCvYma1VSkUNK_zPnkQ6kQkcmBaCLlw9aaRSMsctnvrvFTJfCucKVf59bbYQsgpPpok9logHxVmNrZBqKrz_N24OMfinttrsMToq76ZdgrP9xz86H_qmWGGEHxbYYauLHFZk_V0Vc_f/s1600/no+Image+14.png
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJXqli0TNMJF5YX0YV3Oyz7Q_40wrPa09YdKu_xpMyK9_4XWGshjgvFqYpzzFXNr9zbmIBlhLoB7Pxe5kZ46qe2sHUTaFVn3rqJ7sx3iXQEVwuAWGLFAclmbuDXbF61JjdNtPP5Mur740H/s1600/no+Image+15.png


16 comments:

  1. This is a great post. Thank you for sharing.

    ReplyDelete
  2. like my habit...si bloglang anu ganteng kalem tea
    like my habit ...
    if find a tutorial blogspot blog...you'll just wait...i'll reviews your blog, great articles here, full stylish :P
    regards from si bloglang anu ganteng kalem tea \m/

    ReplyDelete
  3. a horizontal position and style thumbnails there; if so tell us how to do it thanks from GREECE

    ReplyDelete
  4. wow man!!! You rock..! I tried same thing on over 11-15 websites but only your worked,, not only worked.. It rocked...!!!

    ReplyDelete
  5. Tutorial yang sangat bagus sekali gan...maaf nich masa promosi MAU BELAJAR MEMBUAT BLOG WORDPRESS DEMGAN panduan video praktis bisa kunjungi
    http://videopanduanwp.co.cc
    harga saya jamin murah banget bos

    ReplyDelete
  6. i have read every page your blog today, thank u for this article very use full..my question : how to post like your related post between linked within..?? thank you

    ReplyDelete
  7. @Videowp
    yeah,this blog is so great,i've been spending hours trying to edit my blog with tutorials from this blog.now my blog which is
    http://www.freebrowsingtime.blogspot.com
    is looking nice.but all this is attributed you you.thanks

    ReplyDelete
  8. great blog
    http://www.drupalnetworks.com/

    ReplyDelete
  9. Nice information


    http://dzhambhanz.blogspot.com/

    ReplyDelete
  10. thanks! it helps a lot.

    ReplyDelete
  11. widgets are important for all the blogs to get traffic, and it makes the blog attractive. cheap printer cartridges

    ReplyDelete
  12. Potato chips making machine
    Pleased to be here and learn about this. Thank you so much for sharing this with us.

    ReplyDelete
  13. good. http://kompasnia.blogspot.com

    ReplyDelete