Add Related Posts Widget With Nudging Effect in Blogger

Related post widget is a good widget for all bloggers ought to have on their blog since it increases page views & readership while your blog traffic bounce ratio will decrease gradually. This related posts widget will add below the post body. In this post i will give you two awesome/stylish related post widget for your blog. Nudging effect is add in this widget, which makes it more beautiful

How To Add Related Posts Widget With Nudging Effect to Blogger

  • Go to Blogger Dashboard 
  • Click on DropDown Menu and select Template
  • Backup your Template before making any changes to your blog
  • Now Click on Edit HTML --> Proceed --> Expand Widget Templates
  • Press Ctrl + F and search the code shown below


<div class='post-footer-line post-footer-line-1'>


  • Now Replace it with the code shown below


<div class='post-footer-line post-footer-line-1'>
<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=5&quot;' type='text/javascript'/></b:if>
</b:loop>
<script type='text/javascript'>
var currentposturl=&quot;<data:post.url/>&quot;;
var maxresults=5;
removeRelatedDuplicates(); printRelatedLabels();
</script>
</div>
</b:if> 

  • Now select any one code shown below 

CODE 1


DEMO



Live Demo



  • Copy the code shown below and paste it above </head>

<style>
#related-posts {
clear: both;
}
#related-posts ul{
margin: 20px 0; padding: 0;
list-style: none;
}
#related-posts ul li {
border-top: 1px solid #333;
border-bottom: 1px solid #111;
}
#related-posts  ul li:first-child {border-top: none;}
#related-posts  ul li:last-child {border-bottom: none;}
#related-posts  ul li a {
padding: 10px;
display: block;
color: #222;
text-decoration: none;
cursor: pointer; -webkit-transition: padding-left 250ms ease-out;  -moz-transition: padding-left 250ms ease-out;
}
#related-posts  ul li a:hover {
padding-left: 20px;}</style>

<script type='text/javascript'>
var relatedpoststitle=&quot;Related Posts&quot;;
</script>
<script src='http://bloggerblogwidgets.googlecode.com/files/Related-Posts.js' type='text/javascript'/>

CODE 2


DEMO



Live Demo



  • Copy the code shown below and paste it above </head>

<style>
#related-posts {
clear: both;
}
#related-posts h2{
color: #fff;
}
#related-posts ul{
margin: 20px 0; padding: 0;
list-style: none;
}
#related-posts ul li {
border-top: 1px solid #333;
border-bottom: 1px solid #111;
background: #222;
}
#related-posts  ul li:first-child {border-top: none;}
#related-posts  ul li:last-child {border-bottom: none;}
#related-posts  ul li a {
padding: 10px;
display: block;
color: #fff;
text-decoration: none;
cursor: pointer; -webkit-transition: padding-left 250ms ease-out;  -moz-transition: padding-left 250ms ease-out; 
}
#related-posts  ul li a:hover {
padding-left: 20px;
background: #111;}
</style>

<script type='text/javascript'>
var relatedpoststitle=&quot;Related Posts&quot;;
</script>
<script src='http://bloggerblogwidgets.googlecode.com/files/Related-Posts.js' type='text/javascript'/>

Like it? Share it.

8 comments

20 April 2012 at 23:34 Author

kindly give me a soluation that how can i add this effect in my existing related post. please check my site http://www.vidzpro.com/

21 April 2012 at 09:24 Author

@Vidz ProSend me your related post widget code

21 April 2012 at 10:29 Author

my related post widget is embadded with my templates. So what to do now? should i send you a back of my templates?


http://www.vidzpro.com/

5 July 2012 at 00:57

how can i add this, it is a good post. florida drug detox

27 September 2012 at 08:53

Sonu
Can you Help me add this To my Blog?
my Blog IS :
www.SecruityCenter.BlogSpot.Com
If so i Will send you my template so you can Edit it for me.
Thanks.

will wait for respond.

30 September 2012 at 08:57 Author

@Admin There was an error in the widget. Now i had removed it. It work's properly now

30 September 2012 at 08:57 Author

@Admin There was an error in the widget. Now i had removed it. It work's properly now

30 September 2012 at 08:57 Author

@Admin There was an error in the widget. Now i had removed it. It work's properly now

Click to Add a New Comment

  • If you're asking a question click on Subscribe By Email link, on the comment form, to be notified of replies.
  • Do NOT add links to the body of your comment as they will not be published.
  • Only the comments posted in ENGLISH will be approved.
  • If you have a problem check first the comments , maybe you will find the solution there.