Related Posts Widget with thumbnails for Blogger

on


Are you looking to increase page views of your blog? This should be a must have widget for your blogger blog. Related Posts with Thumbnails for bloggerRelated Posts with thumbnails is not just a one more related posts widget. This widget really looks good with the content and thus adds something worth to the overall design of your template. It helps your readers to go through the similar posts they were reading and so helps to decrease your bounce rate by increasing page views. Wow! Both design and better functionality at same time.

In this post we will go through the steps of adding the Related Posts Widget with thumbnails for Blogger. Ready to add to your template? Go through the steps below.
1. Go the Blogger Dashboard and Navigate to the Layout button of your template.


Blogger Dashboard Layout
2. Go to the Edit Html of your Blogger Template.
Blogger Edit Html
3. You Need to check the “Expand Widget Templates” check box.
Blogger Expand Widget Templates
4. Now look for
1
</head>
and ABOVE the code; copy the following code.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<!--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: 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 maxresults=5;
var splittercolor="#d4eaf2";
var relatedpoststitle="Related Posts";
</script>
<!-- remove --></b:if>
<!--Related Posts with thumbnails Scripts and Styles End-->
5. Now find the below Code in your template. Remember easy way to locate codes if by using the Find option (ctrl+F) and copy pasting the code.
1
<div class='post-footer-line post-footer-line-1'>
or
1
<p class='post-footer-line post-footer-line-1'>
6. After you have located those codes, copy the following code and add it AFTER the code.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<!-- 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://www.bloggerplugins.org/2009/08/related-posts-thumbnails-blogger-widget.html'><img style="border: 0" alt="Related Posts Widget For Blogger with Thumbnails" src="http://image.bloggerplugins.org/blogger-widgets.png" /></a><a href='http://www.bloggerplugins.org/' ><img style="border: 0" alt="Blogger Widgets" src="http://image.bloggerplugins.org/blogger-widgets.png" /></a>
</b:if></b:if>
<!-- Related Posts with Thumbnails Code End-->

Widget Configuration

To change the widget’s default configuration, you need to edit the following lines for respective settings.
1. To change the total no of posts displayed in your blog posts, Edit the following line of code.
1
var maxresults=5;
2. To Edit the title of the widget, change the following line of code.
1
var relatedpoststitle="Related Posts";
3. To edit the default thumbnail (the image which is displayed when no image is there in your post), edit the following line of code.
4.To Change the Colour of the Splitter Line , edit the following code.
1
var splittercolor="#d4eaf2";
You can make additional changes according to your need.
Are you using this widget or did you run into any problems with the widget ? Let us know in the comments below.

4 comments:

Jack said...

Very well written article. I just read it and found it very useful for me. Its quite interesting one. Thank guy :)
Free Social Bookmarking

spriderwar said...

its not worked for greetings sites

Anonymous said...

Oh God really? Do I have to write down all those codes then type them all in? Is there no easy way?

Anonymous said...

Oh God really? Do I have to write down all those codes then type them all in? Is there no easy way?

Post a Comment