Build Online Store! | Penguin Panda Series - New! | 4 Rules To Make Money | SEO Settings | Facebook Popup 1, 2, 3 | Mashable 1 , 2


Friday, June 10, 2011

Add +1 button and Other Share Buttons Below Post Titles


Pin It

social-share-widgetThe area just below your post titles have more impressions i.e. that area is more viewed by your visitors and if you add social share or bookmarking buttons such as the new Google +1 button, Facebook Like + Send button, tweet button and my favorite addthis button, then there are more chances of getting more likes, digs, stumbles and +1'd. So lets add this beautiful widget to your blogger blogs. You can see them live just below the post titles of this blog.

Adding the Social Share Widget To Blogger

  1. Go To Blogger > Design > Edit HTML
  2. Backup your template
  3. Search for <data:post.body/>
  4. and just above it paste the code given below,

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

<table border='0'>
<tr>
<td><div style='margin-right:5px;'>
<g:plusone expr:href='data:post.url' size='medium'/>
</div>
</td>
<td><div style='padding-top:6px;'>
<script type='text/javascript'>
tweetmeme_style = &quot;compact&quot;;
</script>
<script src='http://tweetmeme.com/i/scripts/button.js' type='text/javascript'/>
</div></td>

<td><div style='margin-right:25px;'>
<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:25px;'>
<div id='fb-root'/><script src='http://connect.facebook.net/en_US/all.js#xfbml=1'/><fb:like font='' href='' layout='button_count' send='true' show_faces='false' width='40px'/>
</div>
</td>
<td>

<!-- AddThis Button BEGIN -->
<div class="addthis_toolbox addthis_default_style ">
<a class="addthis_counter addthis_pill_style"></a>
</div>
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js"></script>
<!-- AddThis Button END -->

</td>


</tr>
</table> </b:if><br/>

    5.   Next search for </head>

    6.  and just above it paste the following code,

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

    7.  Save your template and you are done!


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 »


Thanks for making this possible! Kindly Bookmark and Share it.
Technorati Digg This Stumble Facebook Twitter

49 comments:

Comment Page :
samsexy98 on 9:32 PM, June 10, 2011 said... #

Buddy the div tags are not closed properly. When I closed it I am even getting that td tags are not closed properly which I couldn't find. Please correct it..

Mohammad Mustafa Ahmedzai on 9:38 PM, June 10, 2011 said... #

@bhavesh

Oh sorry for the inconvenience brother. I just updated the code. How is you illness now?

ahmed safwan on 1:14 AM, June 11, 2011 said... #

mohammed change this to

ahmed safwan on 1:16 AM, June 11, 2011 said... #

close the data post code

samsexy98 on 9:24 AM, June 11, 2011 said... #

Finally added.. Needed to adjust the buttons to fit properly in my layout..

Thanks Bro.. I thought your forgot after you didn't reply to my mail :)
And I am fine now... :)

Mohammad Mustafa Ahmedzai on 2:05 PM, June 11, 2011 said... #

@Ahmed

Oh thanks, yeh I made that stupid mistake everywhere. I updated all codes. :>

@Sam
I am really happy to hear that pal. Forgive me for no replies to mails. You know everything bhavesh. And you will always remain a special friend buddy. :))

samsexy98 on 2:08 PM, June 11, 2011 said... #

@Mohammad Mustafa Ahmedzai

Oh yea I can understand your problems bro :)

samsexy98 on 4:30 PM, June 12, 2011 said... #

Buddy I just can't figure out the problem. Look at my share button. It is fully orange. Even the count "0" is orange color instead it should have been is white. I don't understand what's the problem??

samsexy98 on 4:30 PM, June 12, 2011 said... #

Also see that when hover the button, all becomes white.

Mohammad Mustafa Ahmedzai on 6:18 PM, June 12, 2011 said... #

@Sam
Ok do onething bhavesh

Go to addthis.com and get a fresh code for the counter. and add it instead of the addthis code I have provided. This will make things perfect. Let me know.

samsexy98 on 6:23 PM, June 12, 2011 said... #

I have already done that. Even the send button have problem. When u click send a window comes with "Send" and Cancel" buttons. That window goes under my sidebar instead of staying above, so I placed it after the +1. So problem is actually shifted and not solved. But what to do with this share button... :(

Mohammad Mustafa Ahmedzai on 7:08 PM, June 12, 2011 said... #

@Sam

I visted your blog again and all your buttons are working just perfect. I am not sure if you are using mozilla. further you addthis button has been customized and I guess you have implemented the following tutorial on it ->

http://www.mybloggertricks.com/2011/06/how-to-put-your-blog-name-in-menu.html
Please read the above tutorial again and removing hover effects you may have added just use the code provided in the tutorial only.

samsexy98 on 7:42 PM, June 12, 2011 said... #

Ok see. I have added the same code (with my customization) in minima strech and all is well. So its a problem in the template and not in the code. And the customization of margins is needed to fit in the template.

See this image (What I see on my blog) -> http://lulzimg.com/i22/88cb2b.png

Now while hovering, hover on "Share" instead of on count "0". You will see that "Share" also goes white.

Whereas on this demo site with same custom code, all is well -> http://wallpaperstreasure.blogspot.com/2010/12/art-of-computer-virus-research-and.html

Mohammad Mustafa Ahmedzai on 11:56 PM, June 12, 2011 said... #

@sam

Oh I see pal. Did you ever add the addthis button code elsewhere in your template which you forgot to remove before adding this? I personally think this can not be due to template coding. the code is saved on addthis servers and it doesn't conflict with other scripts.

samsexy98 on 8:14 AM, June 13, 2011 said... #

No buddy, I checked, there is no other code of addthis in my template :(

Mohammad Mustafa Ahmedzai on 3:39 PM, June 13, 2011 said... #

@Sam

Send me your template but its your duty to remind me daily if I have solved the problem. you know I forget things unwillingly :p

samsexy98 on 5:23 PM, June 13, 2011 said... #

Ok i will send u the template when i come back on my pc as i m on my smart phone right now.. Btw i dnt remind u again n again bcoz i feel like i m forcing u to do my work.. But as u have said now i will remind u wenever i get this problem in mind bcoz i m also like u who forget things.. Lol.. :-P

IMM on 2:37 PM, June 24, 2011 said... #

I can`t find this code in my templates:

Is that code in all templates?

samsexy98 on 10:09 AM, June 28, 2011 said... #

I think we need a code update for addthis.. I see a different large chunk of code on the official site..

TJ @ MeasuringFlower.com on 8:20 AM, July 12, 2011 said... #

How do you change the Like + Send button to just the Like counter button? Thanks!

Jefferson J. Jackson on 8:32 PM, July 21, 2011 said... #

Hey I don't know if i did something wrong but when i did all the steps at the bottom of the post there is 1 like button and 1 send button from facebook. Everything is fine with the ones below the post title. I think they are there because i previously tried to add share buttons and failed. But they appeared and i don't want them there. I was just wondering how i could remove the buttons?would appreciate any suggestions.

Kusumadikaa on 8:40 PM, July 29, 2011 said... #

thank for this blog,,

AKHIL HASSAN on 2:26 AM, August 24, 2011 said... #

salam muhammed sayib
above tricks is not working my blog what can i do i hope u will help me.

abdulrafay on 9:10 AM, August 26, 2011 said... #

hello muhammad
i have in 3 different places pls guide me where should i put the code
thanks.
oneworldblogging.blogspot.com

Danielle @ "We Have It All" on 1:40 AM, September 02, 2011 said... #

I could not find "" - is there anything else I could look for?

we_haveitall (at yahoo dot com)

TheMex on 7:30 AM, September 07, 2011 said... #

my didn't work either with the postbody code i have to put either on this of two codes


to put on the top of the post

<div class='post-body entry-content'>


this one tu put on the bottom of the post

<div class='post-footer'>

i hope it help bye

Sunithi Selvaraj, RD on 7:12 AM, September 09, 2011 said... #

Hi, few things.

Changed the look of my blog and some things changed

Now the share buttons appear on every page. How can I get it off the rest and only on the post page which happens to be my home page. I would also like it on my recipe, nutrilinks and blog directory page. Can I customise it only for the pages I want? If not if i can have it only the post page that will be fine.

Also the share button which shares to "everything" is counting the total share since I installed which is 4 posts back.. so showing a higher number. How can it get it to show share number for that post only.The twitter, fb etc are working fine except that the twitter button on my home page is not working.
If you can Please check out my blog and take a look I would appreciate it.

Fachrul Afgan on 8:59 AM, September 13, 2011 said... #

Asalamualaikum Brother, I had add this button in my page but i want it in center. can u help me?? my page d-t3xfa.blogspot.com

Harold Shaw Jr. on 5:07 PM, October 07, 2011 said... #

Hi I am using the Mimoza Theme and there doesn't seem to be a , I am doing a major overhaul of my site as part of my return to Blogger and would like to use this as part of this overhaul. If you could give me a hint of where I can put the code for this theme.

If you have a theme that is close to the same color scheme, you seem to do a great job on your themes but I like a little darker color combination - I would prefer to use yours

Thanks

Harold

MaUzZz[BR] on 7:19 AM, October 16, 2011 said... #

Hello thanks man, visit my blog Brothers !

r00tbrazil.blogspot.com

turnatricks on 12:17 PM, October 26, 2011 said... #

I could not find this code pls help me bro........

Windows to Internet on 9:26 PM, November 04, 2011 said... #

Thank you nice post. I have utilized it in my blog ... Awesome blog..

Windows to Internet on 9:29 PM, November 04, 2011 said... #

Dear how you have made the social buttons widget static when we scroll up and down the page... ? I am talking about the widget just right on your blog.

Mohammad Mustafa Ahmedzai on 12:40 AM, November 05, 2011 said... #

@windows to internet

Read this tutorial pal Floating Share widget

Anmol Rawat on 11:34 PM, November 11, 2011 said... #

they are visible only if anyone opens the post.. what if i want them to be visible in homepage as well?

Adil on 3:00 PM, November 24, 2011 said... #

Thank you so much brother!

MR.38 on 11:48 AM, December 11, 2011 said... #

not working man :(

Reynaldo Stephens on 12:59 PM, December 12, 2011 said... #

Is the Facebook "Like Button" still available for this? I added this to my site but the Facebook "Like Button" is only thing that does not appear

Nik on 3:55 PM, December 14, 2011 said... #

Thanks for this post..........
but i have a little problem...
please help me out...
i cant find the code "" in my template...
where should i post your code...??
i m using Isabela template...
please help me...my blog is..
dailymediafire.blogspot.com

keval kothari on 8:34 PM, December 23, 2011 said... #

Thanks for nice plugin...I have implemented in my blog Gtu Guru

♛ ☾ Mr. Nashrin ☽ ♛ on 8:15 PM, January 08, 2012 said... #
This comment has been removed by the author.
Abhi Kurve on 9:59 PM, January 17, 2012 said... #
This comment has been removed by the author.
順叔 on 8:56 AM, February 04, 2012 said... #

Thanks for the nice plugin. I put it at the bottom of my post. It worked for the first day but the Facebook Like and Send button just disappears mysteriously after that. Any idea why?

Joseph Ezie Efoghor on 12:58 PM, February 08, 2012 said... #

What if you already have other buttons and you want to add only Google+ button? What do you add?

Ghadeer on 9:47 PM, March 20, 2012 said... #

I dont have the code in my blog !!

Test Blog on 1:57 AM, April 05, 2012 said... #

Thanks for this tutorial. Is there a way to have the icons show on the "homepage" on Blogger? Right now they only show if you click on the post URL. See sample: http://valeriebetzphotography.blogspot.com/

Thanks!

Abhishek sony on 12:31 PM, April 23, 2012 said... #

Love this widget Thanks bro Working fine on my Both Blogs

http://lolsplanet.blogspot.com/

http://nannu4u.blogspot.com/

god bless you keep posting :)

bollywood-gossips.net on 11:14 AM, April 26, 2012 said... #

thank for this blog

BitHacker on 4:07 PM, April 29, 2012 said... #

http://tweetmeme.com/about/fail_redirect The retweet button won't show anything and redirects me to that URL. Any kinda help would be appreciated

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. Please do not spam Spam comments will be deleted immediately upon our review.

Regards,
Mohammad

 

Recent Posts

Join Me On Facebook

8600+ Followers

Join The Team!

Licensed Under CC

Recent Comments

Follow Me On Twitter

2601+ Followers

My Blogger Tricks (MBT) © 2012. All Rights Reserved | Contact |