How To Add Related Posts Widget To Blogger With Thumbnails

Posted by Unknown on 0

Now Here is a wonDerfull Hack For displaying relate Posts Beneth each of your Blog Post, along with thumbnails. The Related article are Chosen from other posts in That same Categories/Lable/tag. With This Hack Many Of Your Readers Will Remain on your Site for Longer Periods of time When Thay See Related Posts Of Interest .




Steps Adding The Related Posts Widget To Blogger Blog.

Step 1. Go To Blogger Dashboard >> Template >> Edit HTML .

Step 2 . Check The " Expand Widgets Template " Box .

Step 3 . Search CTRL + F - For This Piece Of Code .

</head>

Steps 4 . Copy And Paste The Below Code Just Before/above </head> .


 <!--Related Posts with thumbnails Scripts and Styles Start-->

<!-- 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: 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=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhP3YljKflWgmjIFm6u0QmD9uuPIIT35MTMLhoBiebv6VY_pjtIDFr6njqVmTCF-SO1GGFSlSNnxhFqzahsgzXzZVJmpxGITHqjjSg8niENYmYcxnl8P95jJpq2r1NQJa6-CENiemg51Wnc/s1600/no_image.jpg&quot;;

var maxresults=5;

var splittercolor=&quot;#DDDDDD&quot;;

var relatedpoststitle=&quot;Related Posts&quot;;

</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-->


Note !! To Change The Default Picturw, Replace The URL in Blue With Your Own .
For Displaying More Than 5 Posts, Replace 5 Value From :var maxresult=5;"
Remove the Code in Violet if You Want The Related Posts to Be Displayed in Home Page To .

Step 5 . Now Find The Following Code : .

<dive class='post-footer'>

Step 6 . And Just Above it, Copy And Paste The Below Code .


 <!-- Related Posts with Thumbnails Code Start-->

<!-- 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=6&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://helplogger.blogspot.com'><img alt='Blogger 
Tricks' 
src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgiW0YrLq8B2qhXcI5SsF15aNTYse5Zxwd9-cW_Lfqj21-tUaIRnDsMr6WzqGJxo-PC6zwgyCqZjNtu75GIIPvrLcoJNCH1LecCYjWzxVVd3RVK2mRk_QtFKwsU5uWPJ6iwAp1wFHwrb1aI/s1600/best+blogger+tips.png'/></a>

</b:if></b:if>

<!-- Related Posts with Thumbnails Code End-->


Note !! Change the 6 Value From max-result=6 With The Number of posts You Want to be displayed .
If You Want The Related Posts To be Displayed On Homepage Too , remove The Code in Violet .


Step 7 . Save The Template .

Tagged as:
About the Author

I love to publish latest blogger widgets,Do check out my posts for updates on Prohelpers

Get Updates

Subscribe to our e-mail newsletter to receive updates.

Share This Post

Related posts

0 comments:

Proudly Powered by Blogger.
back to top