Code generate Related posts with Thumbnails in Blogspot

Related Posts can reduce bounce rates and increase click rates, attracting visitors on blogspot. There are a lot of code generated related posts to blogspot, but code image thumbnail are the most popular.



How to generate code related posts with Thumbnails in Blogspot?


  • Step 1: Log in to your blogger: Dashboard >> Design >> Edit HTML
  • Step 2: Click: Expand widgets template
  • Step 3: Find the following code

1
</head>

  • Step 4: Then copy and paste the following code above the </ head>

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-->
  • The code will display the default is 5 related posts, if you want to display more or less, can be adjusted in line maxresults var = 5;
  • Step 5: Next, you press Ctrl + F and find the following code:
1
<div class='post-footer-line post-footer-line-1'>
  • Step 6: Copy and paste the following code into position just below the code that we found in step 5
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=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'>
</b:if></b:if>
<!-- Related Posts with Thumbnails Code End-->

  • Click Save to finish!






Share this post
  • Share to Facebook
  • Share to Twitter
  • Share to Google+
  • Share to Stumble Upon
  • Share to Evernote
  • Share to Blogger
  • Share to Email
  • Share to Yahoo Messenger
  • More...

9 comments

  1. Thank you so much for this information! This was the only tutorial I found that placed the related posts under the share icons. If it is a quick answer, I would greatly appreciate learning how to make the thumbnails and, more importantly, the text boxes containing the post titles a bit bigger. Currently, longer words (such as "communicating") do not fit on one line and instead wrap, and longer titles do not display in their entirety. Thanks again -- I'll be checking back for new tips often!

    ReplyDelete
  2. Hi! I am not robot. I just voted you! I found similar content that readers might be interested in: Top Outlook 2016 Tips & Tricks

    ReplyDelete

:) :-) :)) =)) :( :-( :(( :d :-d @-) :p :o :>) (o) [-( :-? (p) :-s (m) 8-) :-t :-b b-( :-# =p~ :-$ (b) (f) x-) (k) (h) (c) cheer

 
Posts RSSComments RSSBack to top
© 2011 Sharing the best tips for you and for me ∙ Designed by BlogThietKe
Released under Creative Commons 3.0 CC BY-NC 3.0