Related posts widget is used to display the posts with same label name or same tags. It's a good practice because you can lure your readers to visit other pages of your site thus increasing the page rank of your site. It also serves you as a automatic interlinking plugin to all your pages present in your sites.
Main reason behind posting this tutorial was to offer a plugin/widget which is responsive in real manner. These widget before wasn't responsive at all, after few trials and errors we have successfully changed the codes of this widget which make it responsive. It can mould itself to any site with any width and dimensions. This widget is one of it's own kind.
Now let us see how to imply it on you blogger site
1.Must Know SEO Tips
2.Learn To Resize Cloud Labels
- Open Blogger Dashboard → Template → Html Editor
- Find following code in your HTML Editor
- Now go below to this piece of code searching for
- Now add the below given code just after the above code.
Html & Javascript
<script id='related-posts' src='https://googledrive.com/host/0BxRWAQDD7jACanc2UmlhbDAtdDA/' type='text/javascript'/>
<b:if cond='data:blog.pageType == "item"'> <div style='clear:both;'/> <br/> <br/> <div class='related-posts'> <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=6"' type='text/javascript'/></b:if></b:loop><script type='text/javascript'> var currentposturl="<data:post.url/>"; var maxresults=4; var relatedpoststitle="More Tutorials For You"; removeRelatedDuplicates_thumbs(); printRelatedLabels_thumbs(); </script></div> <div style='clear:both'/> </b:if> </div> </b:if>
- After adding hit the save button and then view you sites pages.
Congratulations You have successfully implemented related post widget to your site.
Final Words
This pre-version of this widget was set with some absolute CSS codes which doesn't make it responsive at all. We have removed all the absolute CSS codes and coded the widget with auto-set codes. Because of which it is working fine in all the sites of any width and any dimensions.
Your thanks is our income, so if you liked our work then let us know your feelings for us via your comments or testimonials.
how do you change the font? I will follow your blog if you can make my blog related widget like yours.. :) #Sorry for my Bad English
ReplyDeleteMy blog is saldorialis.blogspot.com
Hey! #SaldoRialis
DeleteAdd this css in your blog
.relatedtitle {
color: #414141;
font-variant: small-caps;
font-weight: bold;
font-size: 17px!important;
}
Great!, Thanks Suryakant sao, I Hope this my blog will be a great like yours
DeleteHope Your Good wishes come true #Saldorialis :)
DeleteHi Surykant! Great blog!
ReplyDeleteI'm trying to customized Foodie template for my blog. Any ideas why this function doesn't work there? I've tried also with LinkWithin and there's no results as well.
You don't need to worry about that Paulina J I've added this widget in the template file. Now when you redownload it you will get template installed with this related post widget.
DeleteHello again Suryakant. I'm really lost... Thank you very for your time and help, but I've tried with the new template and I have exactly the same problem... There is no related posts displayed... I can find this widget in html code but somehow is disabled... Any more sugestion? I would really appreciate your help :)
ReplyDeleteActually I do have one more doubt with Foodie that I hope you could help me with - why in the comments field I do not see the "picures"/ avatars of the commentators - just "blind windows"?
DeleteSorry for spamming... But I've tried again with the new blog - and then the feature of related posts works just fine (although the avatars of commentators are not displayed too).
DeleteThe problem is only when I try to upload it to my old blog. Do you think it might be something wrong with my settings? Can I changed them?
Hi! Paulina Sad to know that you're in problem.
DeleteWell this related post widget works on labels of the posts. If your post have no labels then this widget will not work.
If you can give me your blog link I can have better inspection of the problem you're facing
Suryakant! Thank you so much! It's working now- I'm not sure why, becasue first I've tried it on "trial version" of my blog (I imported all posts to a new blog) - and results were not good... But when I used the template one the "original blog" it was just fine :)
DeleteOne more time thank you for the great template :) I have one more small question regarding formating the pages of the blog but will post it under Foodie template to keep the commenets on your blog organized :)
:-) This is the only you can learn Paulina J
DeleteWell good luck for your blogging future and call me anytime if you need help
Nice Work! I looking for it for a long time. It works perfectly. Many Thanks! I'll follow you by G+! Thanks again.
ReplyDeleteNice to learn that Adrian :-)
DeleteHello Suryakant, too bad it's not working for me..
ReplyDeleteThank bro.. this is Work in my site http://www.wisatamurahjogja.com
ReplyDeleteI Proud your Tutorial, Good Jobs
ReplyDeletethanks sir its working in my site http://www.technogeekzone.com/
ReplyDelete