Related Post Widget for Blogger: without thumbnails - Cyber Tweaks

Ads Top

Related Post Widget for Blogger: without thumbnails

Content is free. When you buy through links on my site, I may earn affiliate commission. Learn More.

Related Post Widget for Blogger

This widget will show the related posts section below every post page. The related posts titles are fetched from current post page labels.

Steps to Install Related Post Widget for Blogger:

1. Login to your blogger
2. Then Go to Layout > Edit HTML
3. Check Expand Widgets
4. Now Add Bellow CSS code Right before ]]></b:skin> tag
#related-posts {
#related-posts h2{
    font-size: 1.6em;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 0.75em;
    margin-top: 0;
    padding-top: 0;
#related-posts a:hover{
#related-posts ul{
    margin:10px 0;
#related-posts ul li{
    background: url("") no-repeat scroll left center transparent;
    display: block;
    list-style-type: none;
    margin-bottom: 10px;
    padding-left: 20px;
    padding-top: 0;

5. Now add Bellow JavaScript Right before </head> tag
<script type='text/javascript'>
var relatedpoststitle="Related Posts";
<script src='' type='text/javascript'/>
6. Now find Any one of Bellow lines
<div class='post-footer-line post-footer-line-1'>
<p class='post-footer-line post-footer-line-1'>
7. Add Below Widget code just after it.
<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 cond='data:blog.pageType == &quot;item&quot;'>
<script expr:src='&quot;/feeds/posts/default/-/&quot; + + &quot;?alt=json-in-script&amp;callback=related_results_labels&amp;max-results=5&quot;' type='text/javascript'/></b:if>
<script type='text/javascript'>
var currentposturl=&quot;<data:post.url/>&quot;;
var maxresults=5;
removeRelatedDuplicates(); printRelatedLabels();
8. Save Your Template.

You can Customize your widget by changing CSS.

No comments:

Powered by Blogger.