March 11, 2012

Widgets

"Do You Like This Story" - A Widget For Blogs Version-2


blogger widget do you like thisI just took a simple HTML div box and inserted inside it Facebook Like and send button along with Twitter follow button to create version 2 of one of our popular sharing widgets i.e. "Do You Like This Story" The first version included social media sharing buttons along with a subscription box and Facebook like button and it was designed to be added just at the bottom of blog posts but this version is kept simple and clean and designed to be added just below blog post titles in sub pages. This plugin would work with both BlogSpot and wordpress blogs. The tutorial below is aimed for blogger users only. Wordpress users may simply add the code in step#5 without the purple lines just below their post titles manually. Lets first see a demo:


Live Demo

Advantages of This Sharing widget

Since the area just below post titles has highest page impressions therefore it will always catch the attention of every single visitor thus leading to an increase in the number of your Facebook and Twitter followers. You can even set the like button to link to your Fan Page in order to increase your Fan following massively. We will learn below how to code it.

Add This Widget To Blogger

Follow these easy steps:

  1. Go To Blogger > Design > Edit HTML
  2. Back up your template
  3. Click the "Expand Widget templates"
  4. Search for  this

<data:post.body/>

    5.   Just above it paste the following code:

<b:if cond='data:blog.pageType == "item"'>

<div style=" height:80px;  background:rgb(232, 240, 249); border: 1px solid rgb(171, 210, 233); padding: 10px; margin: 10px 0pt 10p 0px;">
<p style="color: rgb(59, 89, 152); margin: 0pt 0pt 5px; font: bold 1.3em helvetica,arial,verdana;">Do you like this story?</p>
<div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like send="true" width="450" show_faces="false"></fb:like>

<a class='twitter-follow-button'  href='http://twitter.com/mybloggertricks' rel='nofollow'></a>
<script src='http://platform.twitter.com/widgets.js' type='text/javascript'></script>

</div>

</b:if>

  • Replace mybloggertricks with your twitter username
  • By default the like button will count hits for the post link only. This will cause your individual posts to be liked and circulated via Facebook. But if you wish to increase your Fan followers then you can fix the like button to count hits for Fan Page only by replacing the yellow highlighted code with the following:

<div class="fb-like" data-href="http://facebook.com/bloggertricks" data-send="true" data-width="450" data-show-faces="true"></div>

  • Replace bloggertricks with your Facebook username. If you don't have a Facebook username then get one from here.

       6.   Save your template and you are all done!

Visit any of your blog posts to see it hanging just perfectly below post title. The widget is coded such that it will appear only in post pages and not on homepage. If you wish to show it even on homepage then delete the purple bolded lines of code.

Need help?

If you need any help related to its customization then let me know. I have set the background colours such that it will suit templates with light backgrounds but if you are using a dark background and wish to change the font colours and borders of this sharing widget then let me know so that I could guide you via comments. Peace and blessings pals! :)




If you enjoyed this post and wish to be informed whenever a new post is published, then make sure you Subscribe to our regular Email Updates!

If you don't want to get yourself into Serious Technical Trouble while editing your Blog Template then just sit back and relax and let us do the Job for you at a fairly reasonable cost. Submit your order details by Clicking Here »

31 comments:

Gagan on Mar 11, 2012, 12:10:00 AM said... #

Respected sir,

I want to start a gaming blog. Can you please provide me a copy of you blog template? I just love this template. I promise to provde a back link to your blog on every page of my blog. Thanks

arhamvhy on Mar 11, 2012, 5:20:00 AM said... #

Thanks master..
I will try it

Dhiraj Barnwal on Mar 11, 2012, 8:59:00 AM said... #

@Gagan

Hey Gagan Check Out Revolution Church Blogger Template http://www.rockingtemplates.com/2012/01/revolution-church.html Its somewhat matching BTW you can change the template colors by yourself

------------------------
RockingTemplates.com

Bhavesh Pamecha on Mar 11, 2012, 9:01:00 AM said... #

"designed to be added just below blog post titles"

I am against this because we are asking the reader "Do You Like This Story" before he/she even starts reading the story.

Faiz Muhammad Khan on Mar 11, 2012, 10:03:00 AM said... #

how to implement it in wordpress??
it appears in sidebar not below post title
reply plzz

yAhyA on Mar 11, 2012, 12:05:00 PM said... #

can it be below the post ?

Bhavesh Pamecha on Mar 11, 2012, 12:42:00 PM said... #

@yAhyA

Why not?
Just put the code below <data:post.body/> instead of above and all done :)

infotilla.com on Mar 11, 2012, 2:30:00 PM said... #

hi nice blog and article....i love your blog..
my blog is http://www.infotilla.com/

Techno Tweaks on Mar 11, 2012, 4:00:00 PM said... #
This comment has been removed by the author.
Raheem Ullah khan on Mar 11, 2012, 4:35:00 PM said... #

Assalam O alekum Mustafa Bhai I just Wanna say that You Didn't Share That How to get Coding Frame Just Like yours MBT CODING in which you had put codes or HTML please Replay me as soon as possible.

Regards,
RaheemUllah Khan
Youngest Blogger Of Pakistan.
http://www.mytrickscollection.com

Amit M B on Mar 11, 2012, 5:46:00 PM said... #

Haha Mohammad, Bhavesh has a point. The sentence can be corrected which says "designed to be added below posts"

Liaqat Qazi on Mar 12, 2012, 10:20:00 AM said... #

Asalam alekum! Your blog's facebook sharing options have a bug and mine also has this bug:) So please repair yours and also tell me how to repair it.

Josh Abellz on Mar 12, 2012, 4:23:00 PM said... #
This comment has been removed by the author.
ranchandfarmsupply on Mar 12, 2012, 4:26:00 PM said... #

Thank you for this trick. This code works in my sidebar:)

FAIZAN ALI on Mar 12, 2012, 11:38:00 PM said... #

Thank You Very Much Sir Allready using it but version is old one soon try it thanks once again Syed Faizan Ali Recently Posted How To Convert Wordpress Blog To Blogger

Iza Teratak Usang on Mar 13, 2012, 1:40:00 PM said... #

Assalam..
Ziarah dari Teratak Usang..

Mohammad Mustafa Ahmedzai on Mar 14, 2012, 12:05:00 AM said... #

@Gagan
I would love to but the stylesheet is a copyrighted one. Though you can download our mbt church theme from the download zone page and customize it to exact same design. Many have already done that in replicating MBT design.

@bhavesh
Oh yes clever you. YOu are right but just to keep things a little different I added it below post title. :)
Sometimes people have the habit of clicking the like button even without reading the post so better keep it in front.

@Faiz
I am using genesis framework and they give a hooks plugin to do that. Since you use a custom wordpress template therefore you will have to manually add it to your blog using FTP filezilla.

@Raheem
I think you are looking for this: 14 ways to create Blockquotes in blogger :)

@Amit
Sentence is correct buddy. This widget is willingly being added just below post titles in order to increase like rate. :>

@Liaqat
Really? Like what qazi could you kindly share a screenshot?

@ranchandfarmsupply

Yes sure you can add it to sidebar too. :>

@Faizan @Iza
Most welcomed pal. :)

Elizabeth Nesbitt on Mar 14, 2012, 10:08:00 AM said... #
This comment has been removed by the author.
Amir on Mar 14, 2012, 11:28:00 AM said... #

Hi Mustafa,

Is there any way to link "Like" button to Facebook fan page in Blogger dynamic view & convert "Tweet" button into "Follow" button?

Just Tips and Tricks on Mar 15, 2012, 7:26:00 PM said... #

Its Not Available for Wordpress ?
I want to add this widget on my blog justtipsandtricks.com how can i add it on wordpress blog ?

Liaqat Qazi on Mar 16, 2012, 8:32:00 AM said... #

I check you sharing options once again and they are working perfectly now. But I am still having problem. The Facebook Like breaks down the post only into the url. This is how it looks http://bit.ly/vYWGto

Nimsrules on Mar 17, 2012, 2:17:00 PM said... #

This is a fabulous widget. Instantly catches the reader's eye.

Kris Adair on Mar 19, 2012, 6:41:00 AM said... #

I added the code but the Facebook portion is not showing up for me. No idea if it is my OS, browser or what. Wish I could see it.
www.inthekitchenwithaudrey.com

laman berita on Mar 22, 2012, 8:54:00 PM said... #

why like button don't appear?

Matt Morales on Mar 24, 2012, 8:29:00 PM said... #

it's not too late to say thanks...More Power!

Leonardo Remon on Mar 27, 2012, 7:06:00 PM said... #

hi, i have 2 tell me wish one is?

Leonardo Remon on Mar 27, 2012, 7:27:00 PM said... #

hi, the widge don't work in my blog

Admin on Mar 28, 2012, 2:16:00 PM said... #

@Mustafa ! Hey freind i am a regular reader of ur blog. MBT. i just need to know that how can i improve SEO of my blog and attract more traffic and also give some advice so that i can improve my blog. my blog is www.blogville.in

kujaswowgoldguide.com on May 31, 2012, 9:34:00 AM said... #

Anyway to add this after the post, so it replaces the small share buttons?

Pravin Purohit on Jun 26, 2012, 2:17:00 PM said... #

Please HELP! i can see 4
highlited!! wt 2 do?

ankit agarwal on Nov 9, 2012, 12:19:00 PM said... #

plz can any 1 give cracker ISO burner????
Hacking Tricks
plz help me i need it

Click Here To add Comment

Confused? Feel free to ask

Your feedback is always appreciated. We will try to reply to your queries as soon as time allows.

Note:
1. To add HTML CODE in comments then please use our HTML Encoder
2. You can always Test the tutorial on our HTML Editor
3. No cheesy/spam Comments tolerated Spam comments will be deleted immediately upon our review.

Regards,
Mohammad

Support Us

If our Tutorials have helped you a little, then kindly spread our voice using the badge below:-

or try a Beautiful Banner


Widgets

 
  • MBT Icons and buttons

    Icons and Buttons

    Our resources have been successfully downloaded over 10K times and found almost every where. Get yours!

  • choosing webhost for a blog

    Why HostGator?

    Learn Why we chose HostGator as our Web Host and find discount coupons to kick start your blog today!

  • SEO Settings for blogger

    ALL IN ONE SEO PACK 2012

    Learn every single SEO tip that will boost your blog's ranking and organic traffic. We got them all!

  • Blogger widgets and plugins

    Visit MBT's Blogger LAB

    Why not take a tour of all great Blogger widgets published so far? You Name it we have it!

  • become a six figure blogger!

    Become a SIX FIGURE BLOGGER

    Learn what it takes to become a successful entrepreneur and build a living online!

About The Author

Hi! I am Mohammad, a certified SEO Consultant, Pro Blogger, Computer Engineer and an addicted Web Developer. Read More..

Recipes

SEO Affiliate Marketing Social Media

Make Money Online Web hosting

Blogging Tips Web Designing

Plugins and Widgets Blogging Ethics

Recent Comments

Popular Series

Powered by:

My Blogger Tricks © 2013. All Rights Reserved | Contact |