Skip to main content

Related post widget for blogger with thumbnails and summaries

     After search for related post widget every where on google to add one for me into my blogger blog , I found one perfect related post plugin that can be easily included in blogger template . This widget is perfect just because it works smoothly without slowing your blog's loading speed . It is true if you use other type of related post widgets you will suffer from slow rendering spreed which takes too much time in loading web page.
     The source for this widget is helplogger.blogspot.com , which always helps me in designing my blogs. To check how this widget works just see this widget below this post for demo.

Related :  How to Create Categories in blogger

Steps to add related post widget to blogger with animated effects and Summaries and thumbnails .

  1. Log in to your blogger account and go to dashboard of your blog .
  2. Click on Template and click on edit HTML button .
  3. Click on textbox where your code of template exists .
    Press  CTRL + F to open blogger search box to find something in your code.
  4. Copy </head> and paste it on your blogger search box and hit enter to find this tag inside your template.
  • After finding this tag , just paste Below script just above

</head> tag .
<script type='text/javascript'>
//<![CDATA[
var relatedTitles = new Array();
var relatedUrls = new Array();
var relatedpSummary = new Array();
var relatedThumb = new Array();
var relatedTitlesNum = 0;
var relatedPostsNum = 4 ; // number of entries
to be shown
var relatedmaxnum = 75 ; // the number of
characters of summary
var relatednoimage =
"http://3.bp.blogspot.com/-PpjfsStySz0/
UF91FE7rxfI/AAAAAAAACl8/092MmUHSFQ0/
s1600/no_image.jpg "; // default picture for
entries with no image
//]]>
</script>
<script src="http://
helplogger.googlecode.com/svn/trunk/related-
posts-with-thumbs-and-summaries.js" />

Customization :

Increase or decrease number of post that are displaying by modifying 4 in relatedPostsNum = 4 .
Change relatedmaxnum = 75 ; to increase or decrease number of characters displayed in post summary .
  • Now you got related post widget but to make it look beautiful you need to add below css and your related post widget will become awesome .
  • Now  Paste the following code above
    the same </head> tag:
<style>
.relatedsumposts {
float: left;
padding: 0px 10px;
overflow: hidden;
text-align: center;
/* width and height of the related posts area
*/
width: 120px ;
height: 200px;
border-right: 1px solid #E5E5E5;
display: inline-block;
}
.relatedsumposts:hover {
background-color: #F7F7F7;
}
.relatedsumposts img:hover {
-webkit-transform: rotate(360deg);
-moz-transform: rotate(360deg);
-o-transform: rotate(360deg);
}
.relatedsumposts a {
/* link properties */
color: #linkcolor ;
display: inline;
font-size: 10px;
line-height: 1;
}
.relatedsumposts img {
/* thumbnail properties */
margin-top: 2px;
height: 82px ;
padding: 5px;
width: 82px ;
border: 1px solid #fff;
-webkit-border-radius: 100px;
-moz-border-radius: 100px;
border-radius: 100px;
-webkit-box-shadow: 0 1px 2px rgba(0, 0,
0, .4);
-moz-box-shadow: 0 1px 2px rgba(0, 0, 0,
.4);
box-shadow: 0 1px 2px rgba(0, 0, 0, .4);
-webkit-transition-duration: 0.8s;
-moz-transition-duration: 0.8s;
-o-transition-duration: 0.8s;
transition-duration: 0.8s;
-webkit-transition-property: -webkit-
transform;
-moz-transition-property: -moz-transform;
-o-transition-property: -o-transform;
transition-property: transform;
overflow: hidden;
}
.relatedsumposts h6 {
/* title properties */
display: table-cell;
height: 3em;
margin: 5px 0 0;
overflow: hidden;
padding-bottom: 2px;
vertical-align: middle;
width: 130px;
}
.relatedsumposts p {
/* summary properties */
border-top: 1px solid #E5E5E5;
border-bottom: 1px solid #E5E5E5;
color: #summarycolor ;
font-size: 10px;
height: 4em;
line-height: 1;
margin: 5px 0 0;
overflow: hidden;
padding: 5px 0 15px 0;
text-align: left;
}
#relatedpostssum {
background: #F3F3F3;
height: 200px; /* related posts container */
padding: 5px;
width: 100%;
}
.relatedpoststitle {
font-size: 19px;
font-weight: bold;
border-top: 3px solid #FB8227;
color: #777;
display: inline-block;
padding: 5px 10px;
width: 190px;
float: left;
margin: 0px -200px 0px 20px;
transform: rotate(90deg);
transform-origin: left top 0;
-ms-transform: rotate(90deg);
-ms-transform-origin:left top 0;
-webkit-transform: rotate(90deg);
-webkit-transform-origin:left top 0;
font-family: Gill Sans / Gill Sans MT, sans-
serif;
}
</style>

Customization :

Use comment lines to customize the appearance of related post widget.
  • Again open search box on Blogger and search the following code
<a expr:href='data:label.url'
rel='tag'><data:label.name/></a><b:if
cond='data:label.isLast !=
&quot;true&quot;'>,</b:if>
  • Now add below code snippet just below above found code .
<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=readpostlabels&amp;max-
results=50&quot;' type='text/javascript'/>
</b:if>
  • The entire code after adding above code will look like below code .
<b:loop values='data:post.labels'
var='label'>
            <a expr:href='data:label.url'
rel='tag'><data:label.name/></a><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=readpostlabels&amp;max-
results=50&quot;' type='text/javascript'/>
</b:if>
</b:loop>
  • At last , find below code
</b:includable>
<b:includable id='postQuickEdit' var='post'>
  • After finding the above code , just add below code above the  </b:includable> tag,
<b:if cond='data:blog.pageType ==
&quot;item&quot;'>
  <div class='post-footer-line post-footer-
line-4'>
<div class='relatedpoststitle'>RELATED
POSTS</div>
<div id='relatedpostssum'>
<script type='text/javascript'>showrelated
();</script>
</div>
<div style='clear:both;'/>
</div>
</b:if>
  • Click on save template and see that all changes are saved or not . If you find difficulties just comment below and our team will help you in installing related post widget in your blog.

Note: This related post with animated effects using css will only work if you have proper labels and more than 2 posts per labels in your blog. Otherwise you will not see any related post in your articles.

Comments

Post a Comment

Comments that are not related to this post will be deleted.
Spammers please stay away.

Popular posts from this blog

Truth about IMEI lock in Jio SIM and other Rumors

     Hello friends, today I am writing this article to clarify some rumors about Reliance Jio. We all know that Reliance Jio services are revolutionary and reliance wants to make 10 crore customers in 1 year. Reliance Jio is offering high speed 4G internet and free voice calls, that's why competitors are spreading new rumors every week. These competitors have fear that they will loose their money laundering business and customers. We all are aware of fake 4G speeds of Airtel, IDEA and Vodafone. You can watch ZEE NEWS report on 4G Internet Speed Scam on YouTube. Now these companies are spending more by creating false information against Reliance Jio. Must Read: Jio Call Quality Review. Rumor 1. Once you purchase & insert the Jio SIM, your mobile will be locked for Jio only and no other SIM will work on your phone. Truth:     We all are living in 21st Century right?. we all are aware of Rules and Regulations made for telecom operators by ...

Build high pagerank do follow backlinks

    If you are new in blogging field and tired in building high pagerank dofollow backlinks but still didn't get any for your site, then try commenting on below blogs of high pagerank which are do-follow websites.     Do follow backlinks will definitely increase your search presence because  more sites pointing to your sites means you have quality contents and this is the factor on which search engine rank your page in searches.       These backlinks tells the search engines to pass link juice to the pointed site or you can say they tells the search engines to follow that link. Related : Top 10 Backlinks Checker Tools Domain age and Tools for checking Domain age Case Study on how to get unlimited traffic everyday.      If you want to read about backlinks in detail then you can read  A Complete Reference to Backlinks Dofollow vs nofollow     Dofollow means the link will give you importance while a nofol...

Top 100 forum sites list in india

     Forums are the best way of generating quality backlinks and to make a online business successful. In India we should have quality backlinks from Indian forums to get Indian business, that's why I decided to create a list of 100+ do-follow forum sites which are based in India and have high Page Rank and domain authority. These sites have 90% of Indian traffic, so it is easy to target Indian traffic for free.       We also have list of forums which are USA and UK based. In this post I created a list in 4 parts, 1st part consist of SEO related forums, 2nd contains forums of webmaster, 3rd is of gaming type forums and 4th is for chatting and discussion forums. I hope you will get appropriate forum for developing your business and niche. Feel free to comment below if these sites helps you. Related: Social Bookmarking Sites List Without Registration Dofollow social bookmarking sites list Dofollow Photo Sharing Sites 100 Top Indian Classified sites ...