Saturday, 8 March 2014
How To Add Related Posts Widget To Blogger with Thumbnails
How To Add Related Posts Widget To Blogger with Thumbnails
Now here is a wonderful hack for displaying related posts beneath each
of your blog posts, along with thumbnails. The related articles are
chosen from other posts in that same category/label/tag. With this hack
many of your readers will remain on your site for longer periods of time
when they see related posts of interest.
Steps adding the Related Posts Widget to Blogger/Blogspot
Step 1. Go To Blogger Dashboard >> Template >>Edit HTML
Step 2. Click anywhere inside the template's code and press the CTRL + F keys
Step 3. Search for this piece of code by typing it inside the search box:
- to change the width and height of thumbnails, modify the 100px value in red
- to change the color and size of related posts titles, change the value in blue
- remove the line in violet if you want the related posts to be displayed in homepage too
Step 5. Now find the following code (you might find it twice, stop at the second one):
- change the 5 value from max-results=5 with the number of posts you want to be displayed
- if you want the related posts to be displayed on homepage too, then remove the lines in violet
Step 7. Save the Template
Enjoy :)
Step 1. Go To Blogger Dashboard >> Template >>Edit HTML
Step 2. Click anywhere inside the template's code and press the CTRL + F keys
Step 3. Search for this piece of code by typing it inside the search box:
</head>Step 4. Copy and paste the below code just before/above </head>
<!--Related Posts with thumbnails Scripts and Styles Start-->Note:
<!-- remove --><b:if cond='data:blog.pageType == "item"'>
<style type='text/css'>
#related-posts{float:left;width:auto;}
#related-posts a{border-right: 1px dotted #eaeaea;}
#related-posts a:hover{background: #f2f2f2;}
#related-posts h2{margin-top: 10px;background:none;font:18px Oswald;padding:3px;color:#999999; text-transform:uppercase;}
#related-posts .related_img {margin:5px;border:4px solid #f2f2f2;width:100px;height:100px;transition:all 300ms ease-in-out;-webkit-transition:all 300ms ease-in-out;-moz-transition:all 300ms ease-in-out;-o-transition:all 300ms ease-in-out;-ms-transition:all 300ms ease-in-out;}
#related-title {color:#222;text-align:center;padding: 0 10px;font-size:14px Oswald; line-height:16px;text-shadow:0 2px 2px #fff;height:28px;width:100px;}
#related-posts .related_img:hover{border:4px solid #E8E8E8;opacity:.7;filter:alpha(opacity=70);-moz-opacity:.7;-khtml-opacity:.7}</style>
<script type='text/javascript' src='http://helplogger.googlecode.com/svn/trunk/relatedposts.js' />
<!-- remove --></b:if>
<!--Related Posts with thumbnails Scripts and Styles End-->
- to change the width and height of thumbnails, modify the 100px value in red
- to change the color and size of related posts titles, change the value in blue
- remove the line in violet if you want the related posts to be displayed in homepage too
Step 5. Now find the following code (you might find it twice, stop at the second one):
<div class='post-footer'>Step 6. And just above it, copy and paste the below code:
<!-- Related Posts with Thumbnails Code Start-->Note:
<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_thumbs&max-results=5"' type='text/javascript'/></b:if></b:loop>
<script type='text/javascript'>
var currentposturl="<data:post.url/>";
var maxresults=5;
var relatedpoststitle="<b>Related Posts:</b>";
removeRelatedDuplicates_thumbs();
printRelatedLabels_thumbs();
</script>
</div><div class='clear'/>
</b:if>
<b:if cond='data:blog.url == data:blog.homepageUrl'><b:if cond='data:post.isFirstPost'>
<a href='http://helplogger.blogspot.com'><img alt='Blogger Tricks' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIgYsJYo_PBM5dOyIbWRMyEHru7k5UoJQb41S2rAqfID38eZoFZN9eVc5FQYrhlNtNpzO1G2YR4p-P5tCzb8qwOLsF8LJp1stMLmT8bqXMu3IiNvaF3EwC-XsGgeWi0kV_hFH9nJi1_PF4/s1600/best+blogger+tips.png'/></a>
</b:if></b:if><!-- Related Posts with Thumbnails Code End-->
- change the 5 value from max-results=5 with the number of posts you want to be displayed
- if you want the related posts to be displayed on homepage too, then remove the lines in violet
Step 7. Save the Template
Enjoy :)
About: BSFU
You may also like...
Subscribe to:
Post Comments (Atom)
Recent Posts
Popular Posts
-
আমাদের মধ্যে ইন্টারনেটে আয় করার ইচ্ছা থাকলেও আমারা বুঝতে পারি না কোন সাইট থেকে আয় করব। আজকে এমন এক সাইট এর সাথে পরিচয় করিয়ে দিব যে সাইটি ...
-
আজকে আমি আপনাদের দ্যাখাবো কিভাবে http://WWW.আপনার ব্লগ.BLOGSPOT.IN কে http://WWW.আপনার ব্লগ.BLOGSPOT.COM এ পরিবর্তন করবেন । আশাকরি বিষয়...
-
Live Demo Follow the step by step instructions to add this widget in Blogger: Sign in to Blogger Go to Layout > Add a Gadget ...
-
আমরা অনেকে সাবটাইটেলের ভক্ত। কারন সাবটাইটেল সহ মুভি/গান দেখলে অনেক মজা লাগে। এটি তৈরি করতে কোন সফট ইউজ করা যায় কিনা জানি না। তবে আমি আপনা...
-
আমরা অনেকেই আছি যারা ব্লগস্পটকে ব্যবহার করি ফ্রি ব্লগ করার জন্য।কিন্তু ব্লগারের সেই টেমপ্লেট গুলো ব্যবহার করতে করতে এখন আমরা অতিষ্ট।সময় এ...
-
আমাদের প্রায় প্রত্যেকেরই ফ্রি অথবা কেনা ওয়েবসাইট বা ব্লগসাইট আছে । আমরা যদি কোন সফটওয়ার, মিউজিক বা মুভির কোন ওয়েব সাইট তৈরি করি তাহলে হোস...
-
Now here is a wonderful hack for displaying related posts beneath each of your blog posts, along with thumbnails. The related articles are...
-
আমরা অনেকেই ইন্টারনেট একপ্লোরার ব্যবহারর করে থাকি শুধুমাত্র সিকিউরিটির জন্য । কিন্তু এটা আমার মনে হয় সবচেয়ে স্লো ব্রাউজার । আমরা যারা নেট...
-
ব্লগার বন্ধুদের জন্য আজকে একটা টিপস শেয়ার করবো-কোনো প্রকার কোডিং ছাড়াই ব্লগে টেবিল যুক্ত করুন ,যাই হোক কাজে কথায় আসি আপনাকে এর জন্য যা যা ...
-
আজ আমি যে বিষয় নিয়ে পোস্ট করব তা হলো ব্লগস্পট ব্লগে প্রতি পোস্টে এবং পেজে ভিজিটর কাউন্টার যোগ করা। আমরা সাধারনত দেখেছি ব্লগস্পট ব্লগে ...
No comments:
Post a Comment