December 29, 2011

Widgets

Show Sharing Buttons Just Below all Post Titles in Blogs


social sharing buttons widgetThe widget today is an upgraded version of the sharing widget we earlier shared. It includes popular social networking buttons like Twitter, Facebook Like, Google Plus +1, Add this and Stumbleupon. I am using it in my blog as you can see. We will also customize here the Add This button and will add blog title inside it. You can easily customize it to change the background colors and widget overall look. It can be added to both Blogger and Wordpress. It has great importance in boosting blog traffic through the shares made through these buttons which will circulate in social media and help you enjoy a long lasting referenced traffic. Lets add these valuable buttons to your blog.


Live Demo

 

Add Social Sharing Buttons Below Post Titles

I am sharing here the method for blogspot blogs. If you are using Wordpress then you may please add the code shared below inside your template by going to template section.

Follow the steps below if you use Blogger.

  1. Go To Blogger > Design > Edit HTML
  2. Backup your template
  3. Click on the box at top right that says "Expand Widget Templates"
  4. Then search for <data:post.body/>
  5. Just above it paste the following code,

<b:if cond='data:blog.pageType == &quot;item&quot;'> <div style='background:#FEE6E6; border:1px solid #ddd; -moz-border-radius:9px; -webkit-border-radius:9px; border-radius:9px; padding:5px; box-shadow: 3px 3px 3px #CCCCCC;'> <table border='0'> <tr>

<td><!-- Twitter -->

<a class='twitter-share-button' data-count='horizontal' data-lang='en' expr:data-text='data:post.title' expr:data-url='data:post.url' href='http://twitter.com/share' rel='nofollow'/> <b:if cond='data:post.isFirstPost'> <script src='http://platform.twitter.com/widgets.js' type='text/javascript'> </script> </b:if> </td>

<td><!--Facebook-->

<iframe allowTransparency='true' expr:src='&quot;http://www.facebook.com/plugins/like.php?href=&quot; + data:post.url + &quot;&amp;layout=button_count&amp;show_faces=false&amp;width=100&amp; action=like&amp;font=arial&amp;colorscheme=light&quot;' frameborder='0' scrolling='no' style='border:none; overflow:hidden; margin-left:0px; width:100px; height:20px;'/> </td>

<td><div style='margin-right:25px;'><!-- STUMBLE UPON -->

<script expr:src='&quot;http://www.stumbleupon.com/hostedbadge.php?s=1&amp;r=&quot; + data:post.url'/></div> </td> <td><div style='margin-right:5px;'><!-- GOOGLEPLUS --> <g:plusone expr:href='data:post.url' size='medium'/> </div> </td>

<td><!-- AddThis Button BEGIN -->

<div class='addthis_toolbox addthis_default_style '> <a class='addthis_counter addthis_pill_style'/> </div> <script src='http://s7.addthis.com/js/250/addthis_widget.js#pubid=xa-4de3b2d654f56f28' type='text/javascript'/> <script type='text/javascript'> var addthis_config = { ui_cobrand: &quot;MY BLOGGER TRICKS&quot;, ui_header_color: &quot;#ffffff&quot;, ui_header_background: &quot;#0080FF&quot; } </script>

<!-- AddThis Button END --></td> </tr> </table></div> </b:if><br/>

 

Make these changes:

  • To change the background color of the container edit #FEE6E6
  • Change MY BLOGGER TRICKS with your blog title so that it appears on the add this button upon mouse hover. As shown below:

customize add-this button

      5.  Note: skip this step if you have already added a Google+ button somewhere in your blog. Search for ]]></b:skin>  and just below it paste the following code:


<script src='http://apis.google.com/js/plusone.js' type='text/javascript'> {lang: &#39;en-US&#39;} </script>

 

       6.  Save your template and say bingo!

Visit your blogs and see it appearing only on post pages and not the homepage. If you wish to show it even on your homepage then simply delete the two purple lines from the code above.

Want more?

If you want more variations of the same widget then kindly check our social sharing widget collection.  Do let me know if you needed help. Peace 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 »

72 comments:

Karan Singh Chauhan on Dec 29, 2011, 12:22:00 AM said... #

Hey Mohd_ its karan singh chauhan your old grt visitor. I am very much impressed by this post and sooner to implement this widget in my blog. Anyways plz check my guest post at mustafa.stc@gmail.com


www.krackoworld.com

Danialde4 on Dec 29, 2011, 12:41:00 AM said... #

Thanks... ^_^

kostantinos on Dec 29, 2011, 4:03:00 AM said... #
This comment has been removed by the author.
kostantinos on Dec 29, 2011, 4:03:00 AM said... #

it is not working :( my blog is www.koufanekdota.blogspot.com

SHREE MADHAN on Dec 29, 2011, 7:29:00 AM said... #

nice widget
http://softechnogeek.blogspot.com/

Khalid on Dec 29, 2011, 8:05:00 AM said... #

Please can you tell me how to search

TechGeeks on Dec 29, 2011, 8:13:00 AM said... #

tried this widget,mohammed i am having a sharethis plugin already in my blog http://studentsidea.blogspot.com ,how can i remove that ,if we add manualy i can remove it but ,the plugin was auto aded ,so kindly do help me..

Handi Priyono on Dec 29, 2011, 8:40:00 AM said... #

yeah , that widget is working on my blog :d
bloggers blog
techiehandy - a technology blog

Faiz Muhammad Khan on Dec 29, 2011, 1:12:00 PM said... #

great one !RISE PK

Oguntayo Mathew AdeKunle on Dec 29, 2011, 3:10:00 PM said... #

Thanks, this is working perfectly on my blog

Umesh Tarsariya on Dec 29, 2011, 6:54:00 PM said... #

thanks a lot dude (^-^)...
its look amazing in my blog...

Jack on Dec 29, 2011, 9:57:00 PM said... #

Mohammed, I know this is very off-topic but I feel only you can help me with this problem that I've been trying to fix for a week now. In this template below that I've incorporated to my blog, Every time there’s more than one comment posted, the sidebars drop below the content posts on Internet Explorer. Can you please help me in figuring this out? I'm a 1000% sure the problem is with the comment area. So if you can help me, I'll subscribe and add your blog to my website as a thank you!

Open this template with Internet Explorer to see what I mean: http://iphone-hello-demo.blogspot.com/2011/05/vietnam-tours-and-travel.html

Mohammad Mustafa Ahmedzai on Dec 29, 2011, 10:46:00 PM said... #

@karan

Welcome back karan :) Sure I will check it soon.

@khalid
Kindly click Ctrl + f to find the short specified code using your browser search box.

@Tech Geeks
Search for that widget inside your Page Elements and delete it there.

@Jack
Your demo blog looks just perfect in IE9 which is the one I use. Which version are you using?

Normally we introduce conditional IE statements for stylesheet to work properly. IE9 works now perfect with all designs.

Arnel Cartoneros on Dec 29, 2011, 11:27:00 PM said... #

sir I have also question why in my html editor have a two data post body. this a new blogger template.And where I put the code for sharing buttons the top or in the buttom?

Muhammad Allam on Dec 30, 2011, 12:09:00 AM said... #

Nice Widget
THANKS ....
MAKE DOLLARS ONLINE

Harsh Shah on Dec 30, 2011, 8:40:00 AM said... #

Hey mohammed i have a problem i am trying to fix since long. Can you please help me with it. My blogs feed is not updating as i post new content. I checked on Feed Validator and http://www.feedvalidator.org/check.cgi?url=http%3A//feeds.feedburner.com/IndiaCoupons is the error it gave. I am not sure what to do and what not to. Please guide me. I also checked with the FAQ's where they say something about tag being introduced in the blog but i don't know how to find it and remove it.

Thanks

Harsh Shah on Dec 30, 2011, 8:43:00 AM said... #
This comment has been removed by the author.
numtamilnadu.com on Dec 30, 2011, 9:10:00 AM said... #

Hi Mustafa , I'm using this one but I dont want the widget to look in a separate box , can I make it integrated with the background just like in yours?

samsexy98 on Dec 30, 2011, 11:18:00 AM said... #

Hi
Can I know what's the difference between this & the old one?

Mohammad Mustafa Ahmedzai on Dec 30, 2011, 3:12:00 PM said... #

@arnel
The first one, the code that appears the first.

@Harsh
I checked your feeds and everything seems ok for your blog http://feeds.feedburner.com/IndiaCoupons
The feed is always updated around 12 hours later pal.

@numtamil

Delete these two bolded lines from the code above:

<div style='background:#FEE6E6; border:1px solid #ddd; -moz-border-radius:9px; -webkit-border-radius:9px; border-radius:9px; padding:5px; box-shadow: 3px 3px 3px #CCCCCC;'>


and the div tag from below:

<!-- AddThis Button END --></td> </tr> </table></div> </b:if><br/>

the container will get deleted.

@Sam
How are you buddy? :) This widget provides a container that makes it more visible and also contains a customized add this button. No digg button is included because preference is given to widely used social sharing buttons

Max on Dec 30, 2011, 4:05:00 PM said... #

Hey Mohammad, i have been waiting in anticipation for many days now for the monop template to arrive in my inbox, i am daily reader of your blog, have subscribed ages ago ;)

id- mayur_prabhu@yahoo.com

keep up the good work and nice widget :D

samsexy98 on Dec 30, 2011, 4:19:00 PM said... #

Ok..
I wanted that full pack with icons & other stuff included. I also commented there a few days ago but just didn't remember the title.

numtamilnadu.com on Dec 30, 2011, 4:48:00 PM said... #

Thanks bro. The container got deleted ,it worked.

Gul Chaudhry on Dec 30, 2011, 5:25:00 PM said... #

Thank you very much Ahmedzai Brother,
I like your Blogspot widgets very much and this is also a very good and useful widget.
Thumbs Up

Harsh Shah on Dec 30, 2011, 5:36:00 PM said... #

Thanx pal but the prob was my feed size was more than 512K. Solved the problem by restricting my feed to recent 5 posts :)

ahmed safwan on Dec 30, 2011, 11:56:00 PM said... #

i think that go daddy is better why did not you use it
you can convert your blogger to custom domain with 7$/year and then you can add 90 cnames and you can upgrade after for premium dns for unlimited cnames

i would like to know your answer about this question

thanks

Tarun Bhadauria on Dec 31, 2011, 10:40:00 AM said... #

thanks

Mohammad Mustafa Ahmedzai on Dec 31, 2011, 4:28:00 PM said... #

@Max

I am sorry for the inconvenience mark. I just sent all resources to you. :>

@Sam
Just sent them buddy. Everything and waiting for your reply to the email. :)

@Gul
My pleasure buddy. :)

@Harsh
You are getting smarter day by day. Keep it up :)

@ahmed
That is correct but godaddy offers only domain registration not web hosting. You can not create sub domains with it like forum and tools and services that I am going to release tonoght. Wait for my post on 2012 today to discover the secret. you will love the post. :)

samsexy98 on Dec 31, 2011, 4:31:00 PM said... #

Already replied to your mail yesterday Bro.

Ethical Hackerzzzz on Jan 2, 2012, 3:04:00 PM said... #

cant find <data:post.body.....
my blog www.techcafe.tk


help me

Ritesh Warke on Jan 7, 2012, 7:08:00 PM said... #

Bro Share button is getting cutted, so I have to remove tweet button..

Help me to get al five buttons in a single line

Here :-> http://www.techinspiro.blogspot.com

jatin rohilla on Jan 15, 2012, 2:59:00 PM said... #

working tnx :)....

http://nirmalmaza.blogspot.com/

Vladimir on Feb 20, 2012, 3:06:00 PM said... #

Thanks Mohammad for your ebook - Create and sale ebboks. I would like to point out sharrre.com which seems to be fair lighter load on page. Whoever I am not skilled enought to implement into the blogger. Can you be of assistance.
Thanks very much.

techno gist on Mar 5, 2012, 6:16:00 AM said... #

great post...thnx:)

http://technogist.blogspot.com

Haris Prasetyo on Mar 14, 2012, 2:10:00 PM said... #

Thanks... Its Works...

Me Blog: http://haris-tkj-kreatif.blogspot.com/

HASSAN ELYAS on Mar 31, 2012, 12:55:00 AM said... #

hey i want to remove the widget ! how can i remove it from my blog ? www.androidcop.blogspot.com

Patel Tutor on Apr 21, 2012, 2:21:00 PM said... #

Dear Mohammad,
Some problem this widget in IE. it hides the google plus button and block the privacy of sharethis website... it's ok when i allow the privacy of sharethis site but it block the google+1 button what i do ?

http://qtutors.blogspot.com
have any suggestion regarding this kindly let me know :)

Patel Tutor on Apr 26, 2012, 2:23:00 PM said... #

Sharing Button Now Showing see

http://warrive.blogspot.com
http://warrive.co.cc

here i add the above code but not showing the icon just div why?

YourCyberGuide on Apr 29, 2012, 1:35:00 PM said... #

hey buddy it shows adchoice ... you might be aerning by sharing this widget... If dont then who else is

കുര്യച്ചന്‍ on Apr 30, 2012, 10:48:00 AM said... #

thanks i am searching for it long time .....thanks.....

Abo-Abdullah Mosa on May 2, 2012, 5:27:00 AM said... #

Thanks for sharing your knowledge. I've a problem with FACEBOOK Share button, It shows a wrong title, since it shows the title of my blog instead of showing the title of my post!!. It also shows a wrong description.
AS for DIGG it works just fine. I do not know if the problem with facebook of with my template.
Kindly fix this problem for me. Thanks in advance. My blog's name is Science universe: Physics articles. I'll not put the url. I do not spam. Thanks again.

Bollywood News on May 9, 2012, 9:19:00 AM said... #

thanks a lot dude (^-^)...bollywood gossips

freeadsinfo.com on May 12, 2012, 10:22:00 PM said... #

You are rocking with excellent tips and tricks.I appreciated you because your tips and tricks are easily understandable even no html knowledge. Thumbs up. Long live MBT.

Chandru Chand on Jun 3, 2012, 10:27:00 PM said... #

can you help me my blog dont have ???

TJ Sports Journal on Jun 16, 2012, 3:49:00 AM said... #

Thank You! It finally works!!!!!!!

nakul kaladhar on Jun 24, 2012, 4:23:00 PM said... #

I tried to add this share button .but it is not appearing .Even i tried Lockerzplugging that also flop.Is this the problem of the template.please help.

nakul kaladhar on Jun 24, 2012, 4:25:00 PM said... #

my blog is snapmails.blogspot.com.....please help

Daksh Bhagya on Jun 26, 2012, 3:40:00 AM said... #

thanq for sharing this post.
www.dynamictrick.in

akash singh on Jun 30, 2012, 8:03:00 AM said... #

it working ... nice post

FunnyShiit on Jul 27, 2012, 2:38:00 PM said... #

It is working perfectly. You can see it at www.funnyshiit.com. Thank you!

DAVID ANWANA UDO on Aug 17, 2012, 12:02:00 PM said... #
This comment has been removed by the author.
DAVID ANWANA UDO on Aug 17, 2012, 12:05:00 PM said... #

Thanks a million time, I was able to install it on my blogger blog at http://www.nigeriabusinessdirectories.com.

Diane on Aug 18, 2012, 4:30:00 PM said... #
This comment has been removed by the author.
Sang Biru on Aug 28, 2012, 8:56:00 PM said... #

work like a magic...

meeseva AP on Sep 14, 2012, 2:12:00 AM said... #

thank you

mproblemsolution.com on Sep 15, 2012, 1:57:00 AM said... #

Reilly your all post is awesome

Taufik Ashaari on Sep 20, 2012, 3:43:00 PM said... #

Works great here Football news

Taufik Ashaari on Sep 20, 2012, 3:46:00 PM said... #

Aww wrong link its should be here World Superbikes

indianbet billy on Oct 4, 2012, 11:08:00 PM said... #

problem with addthis in all my posts
suddenly twitter icon disappear,facebbok icon disappear
and i have a message "terms of service or of imageshack terms of service"
please help

indianbet billy on Oct 4, 2012, 11:10:00 PM said... #

http://www.indian-bet.com/2012/10/europa-league.html
see my problem

jojopig.com on Oct 6, 2012, 7:46:00 PM said... #

Thanks for the posts. great blog.

Balaji on Oct 11, 2012, 9:52:00 PM said... #

This doesn't work on my blog :( Any help here for me???
http://codecrypton.blogspot.in

Ahsan Arshad on Oct 18, 2012, 11:39:00 PM said... #

Assalam,
this is not working in my blog....
http://itnewscorner4u.blogspot.com/

Mark Gil on Oct 30, 2012, 7:40:00 AM said... #

Thank You So Much For This Post. mybloggertricks.com is my emergency outlet wghen i need help online

kind regards from www.incomesideas.com , your online source for online income ideas and legit sites.

Glen on Nov 20, 2012, 6:11:00 PM said... #

Hi, i want to add the "via USERNME in the twitter share, anybody can help me with it?

jovdavid.com on Dec 16, 2012, 10:01:00 PM said... #

I'm here again back for good with your helpful guide. I am having a new food blog and need this instruction to put up the social sharing buttons.

I successfully follow this again. Big Thumbs up for you!

Next help I need is on how to change my comment form background into like yours. Could you help me with it?

AnonYmous on Feb 10, 2013, 5:43:00 AM said... #

Thanks bro.

Imran Memon on Feb 10, 2013, 1:04:00 PM said... #

Its Not Show Shairing Buttons Bellow Title, It Shows Below Ads
Check IT, And Help Me

Komol on Feb 18, 2013, 1:29:00 AM said... #

Not working...

www.tknowmore.blogspot.com

Jegan on Mar 10, 2013, 11:51:00 AM said... #

Share box not coming in homepage evenafter deleting those two lines... help me bro...

Anshul Rai on Apr 16, 2013, 6:20:00 AM said... #
This comment has been removed by the author.
Anshul Rai on Apr 16, 2013, 6:22:00 AM said... #

I want to add default sharing buttons for each post.
what to do..

http://www.bestshoppingdealsofindia.com

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 |