1. Login to blogger > Layout > Edit HTML > Download Full template (for backup) > Expand Widget Templates.
2. Now look for </head> . And add the following code ABOVE it.
<!--Related Posts Scripts and Styles Start-->
<b:if cond='data:blog.pageType == "item"'>
<style>
#related-posts {
float:center;
text-transform:none;
height:100%;
min-height:100%;
padding-top:2px;
padding-left:5px;
}
#related-posts .widget{
padding-left:6px;
margin-bottom:10px;
}
#related-posts .widget h2, #related-posts h2{
font-size: 1.6em;
font-weight: bold;
color: black;
font-family: Georgia, “Times New Roman”, Times, serif;
margin-bottom: 0.75em;
margin-top: 0em;
padding-top: 0em;
}
#related-posts a{
color:#006699;
}
#related-posts a:hover{
color:#003366;
}
#related-posts ul{
list-style-type:circle;
margin:0 0 0px 0;
padding:0px;
text-decoration:bold;
font-size:15px;
text-color:#000000
}
#related-posts ul li{
background:transparent url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdBEkfgNi9Bj9eVEQHnyhhmZaNQqmalFIRc6aWB2kucGJwTrG3-dmfNxr79PuIWJ6cp8rzrRxcDimjLLuXW5P3Qvf6DdSBS2NXXH94941iBgGlElAY1iPuAWMFgtzeRdpy5GGIYmNyVV0/s1600/xxz.gif) no-repeat ;
display:block;
list-style-type:none;
margin-bottom: 4px;
padding-left: 15px;
padding-top: 0px;}
</style>
<script type='text/javascript'>
var relatedpoststitle="Related Posts";
</script>
<script src='http://sites.google.com/site/freebloggerhelpbiz/freebloggerhelp/relatedposts.txt' type='text/javascript'/>
</b:if>
<!--Related Posts Scripts and Styles End-->
Again apply your styling skills to change color, margin. You can also change the bullet image. You can change Related Posts Title to your own herevar relatedpoststitle="Related Posts";3. Finally look for<div class='post-footer-line post-footer-line-1'>or
<p class='post-footer-line post-footer-line-1'>And add following code BELOW it.<!-- Related Posts Code Start-->
<b:if cond='data:blog.pageType == "item"'>
<div id='related-posts'>
<b:loop values='data:post.labels' var='label'>
<b:if cond='data:label.isLast != "true"'>
</b:if>
<b:if cond='data:blog.pageType == "item"'>
<script expr:src='"/feeds/posts/default/-/" + data:label.name + "?alt=json-in-script&callback=related_results_labels&max-results=6"' type='text/javascript'/></b:if></b:loop><a href='' style='display:none'/>
<script type='text/javascript'>
var currentposturl="<data:post.url/>";
var maxresults=5;
removeRelatedDuplicates(); printRelatedLabels();
</script>
</div>
</b:if>
<!-- Related Posts Code End-->
You can change the number of related posts shown by changing valuevar maxresults=5;It's done. So method 1 ends here.
You might also like:
|
Respected Readers:
We have published many useful posts a week with our try hard. To help us go ahead with the same spirit, a small contribution from your side will highly be appreciated.
Many thanks
|