How to Add Blogger Related Links to Below Blog Posts

How to Add Blogger Related Links to Below Blog Posts



1. Go to Blogger Dashboard > Template
2. Backup your template
3. Click on Edit HTML
4. Find  ]]></b:skin>   and add below code just below it



<!--Related Posts 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 .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, &#8220;Times New Roman&#8221;, Times, serif;

margin-bottom: 0.75em;

margin-top: 0em;

padding-top: 0em;}

#related-posts a{color:#0c0080;}

#related-posts a:hover{color:#0ab0fd;}

#related-posts ul{

list-style-type:none;

margin:0 0 0px 0;

padding:0px;

text-decoration:bold;

font-size:12px;

text-color:#000000

}

#related-posts ul li{

background:transparent url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhcCui7pjtVKaHk9HML_VCRd-EmC7K3JRpWav1gofUlfN_nLMB0kOTeBWZMDM6Tk5iVr-gCfB753phCVyKqOKNJWqanB7AJO6WHo0l9s2AxNiarpS2Rw0BodxmEqYANtL56_wQjSgiz5vc/s1600/btrix_arrow-icon.png) no-repeat ;

display:block;

list-style-type:none;

margin-bottom: 13px;

padding-left: 30px;

padding-top:0px;

height: 20px;

margin-top: -5px;}



  #related-posts ul li:hover{

background:transparent url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiX_9nuXC6Ah1W1HDN0wRGoHvdFVNgfnYC2LEOKWubXv6Yxxvv0TmBtSdkK5OFlgkMVs0HALz4tU8Mfz_nSBlJofWdv_7jitsxNubFtYOHQwbKhiwZmbuAgBMys47UUY5e8i07_eSVTTsw/s1600/btrix_arrow-icon2.png) no-repeat ;

display:block;

list-style-type:none;

margin-bottom: 13px;

padding-left: 30px;

padding-top:0px;}</style>
<!--Related Posts Scripts and Styles End-->

5. Again  Find  <div class='post-footer-line post-footer-line-3'>  and add below code just below it
  

<!--Related Posts 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&amp;max-results=6&quot;' type='text/javascript'/></b:if></b:loop>

<script type='text/javascript'>

var maxresults=10;

removeRelatedDuplicates(); printRelatedLabels(&quot;<data:post.url/>&quot;);

</script>

</div>

</b:if>

<!-- Related Posts Code End-->

You can change maxresult as your like ( how many related posts need to visible)

6. Now save your Template.
أحدث أقدم