How to Add Related Post Thumbnails for Blogger

Advertisement

Displaying the links to related posts along with a thumbnail of the corresponding post will help you increase the page views/user .Users will be tempted to go for the related posts when they are presented attractively with thumbnails.

This is another first release from me.This one also uses the media thumbnails generated by blogger for each post.

For displaying the thumbnails,this widget will use the images uploaded for the post using the blogger image uploader(from the post editor) [Update - Now supports external images also.]

related posts How to Add Related Post Thumbnails for Blogger

Related Posts Widget with Thumbnails for Blogger

1.First of all Login to your blogger dashboard and navigate to Layout > Edit HTML and check the “Expand Widget Templates” check box

2.Now look for

</head>

and insert style code bellow:

/* Related post with  with Thumbnails*/

#related-posts {
float : left;
width : 540px;
margin-top:20px;
margin-left : 5px;
margin-bottom:20px;
font : 11px Verdana;
margin-bottom:10px;
}
#related-posts .widget {
list-style-type : none;
margin : 5px 0 5px 0;
padding : 0;
}
#related-posts .widget h2, #related-posts h2 {
color : #940f04;
font-size : 20px;
font-weight : normal;
margin : 5px 7px 0;
padding : 0 0 5px;
}
#related-posts a {
color : #054474;
font-size : 11px;
text-decoration : none;
}
#related-posts a:hover {
color : #054474;
text-decoration : none;
}
#related-posts ul {
border : medium none;
margin : 10px;
padding : 0;
}
#related-posts ul li {
display : block;
background : url(“http://i263.photobucket.com/albums/ii150/mohamedrias/newconcept_bullet.png”) no-repeat 0 0;
margin : 0;
padding-top : 0;
padding-right : 0;
padding-bottom : 1px;
padding-left : 16px;
margin-bottom : 5px;
line-height : 2em;
border-bottom:1px dotted #cccccc;
}

3. Find tab bellow :

<p><data:post.body/></p>

and then insert code this code bellow it:

<!– Related Posts with Thumbnails Code Start–>
<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>
<b:if cond=’data:blog.pageType == &quot;item&quot;’>
<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=45&quot;’ type=’text/javascript’/></b:if></b:loop>
<a href=’http://www.bloggerplugins.org/2009/08/related-posts-thumbnails-blogger-widget.html‘ style=’display:none;’>Related Posts with thumbnails for blogger</a><a href=’http://www.bloggerplugins.org/‘ style=’display:none;’>blogger tutorials</a>
<script type=’text/javascript’>
var currentposturl=&quot;<data:post.url/>&quot;;
var maxresults=45;
var relatedpoststitle=&quot;You may also like : &quot;;
removeRelatedDuplicates_thumbs();
printRelatedLabels_thumbs();
</script>
</div><div style=’clear:both’/>
</b:if>
<!– Related Posts with Thumbnails Code End–>

4. Save Template

Hope you have successful with this guide

5. If  you have any problems with this guide , you can download my sample template here: Sample template (170)

Subscribe to Fresh Design Web:

Related Articles

Add related post in blogger

How to displaying the links to related posts in your blogger of the corresponding post will help you increase the page views/user .Users will be read more

Graham Bill

Written by

Graham Bill has been a professional web developer and assisting others to learn web design with coding HTML5, CSS3, PHP, ASP.net, jQuery, Ajax, jsp, XML, MySQL, SEO and especially on development Joomla Templates and WordPress Themes since 2009.

Feedback 2 Leave a comment

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>