Recommended: Fix Windows Errors and Improve PC Performance

How to add Twitter (Retweet) Button to Every Blogger Posts

Posted by Bapun 17 June, 2009

There a lots of ways and platforms to promote your blog in order to get traffic. But the first blog promotion starts from your blog posts itself. You should design your posts with all necessary blogger social bookmarking icons, so that people can spread it’s reach using different web services. There are different buttons that you can use on your blogger posts like Digg, Yahoo! Buzz, StumbleUpon, Mixx, Twitter etc. Here I’m going to show you the tutorial to add a Twitter or Retweet button to your blogger blog posts. Yes, you can use Twitter to promote your blog and you will not only get some followers to your Twitter account but will also get decent traffic to your blog.

If someone likes your post, he can click on the Retweet button to post the topic with it’s URL in his twitter account and all his followers would get notified about this. This is the simple yet effective way to promote your blog posts on twitter. There are two types of Retweet buttons available to insert in your blogger posts. One is the most common sized and another one is the small sized. Look at the below screenshot.

different twitter buttons for blogger posts

How to Add Twitter (Retweet) Button to Blogger Posts

Login to your blogger dashboard.

Navigate to Layout >> Edit HTML >> Expand Widget Templates

Search for <data:post.body/> and paste the following codes just before or after it. Adding the code before <data:post.body/> will show the Retweet button on the top of your post while adding after <data:post.body/> will show the Rettweet button on the bottom of your post.

For Digg like Button, use the following code.

retweet button

<script type="text/javascript">
tweetmeme_url = &#39;<data:post.url/>&#39;;
</script>Retweet this button on every post blogger
<script src="http://tweetmeme.com/i/scripts/button.js" type="text/javascript">
</script>

For Compact sized button, use these codes.

retweet small button

<script type="text/javascript">
tweetmeme_style = "compact";
</script>
<script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"></script>

Now if you want align it to the right, use the above code in the following way.

<div style='float:right; margin-left:10px;'>

>>>>Retweet Button Code Here<<<<

</div>

Similarly if you want to align it to the left, use the above codes in this way.

<div style='float:right; margin-left:10px;'>

>>>>Retweet Button Code Here<<<<

</div>

You are done now. Now all your blogger posts will have a Twitter button or Retweet button. If you face any problems, use the below comments section to seek help.

We will send you some more information related to How to add Twitter (Retweet) Button to Every Blogger Posts

Categories : Blogspot Tags : , , ,

Comments
June 17, 2009

Thanks dear, you explain at easy way

Posted by Mohan
June 23, 2009

I put up the retweet button at the end of my posts ( http://joblounge.blogspot.com ). Is there a way to get the button to be flush left after each post, instead of immediately after the last word in the post?

BTW, thank you for the instructions. I retweeted them. :)

Posted by Susan Ireland
June 23, 2009

@ Susan : Such a lovely blog there. Impressive :)

You can add a < br / > (without space) tag before the twitter code. Adding a line break will force the button to create a new line and get aligned to left. However, if you want to get the most out of this button, try showing it on the top of the post.

Posted by Bapun
June 24, 2009

That worked. Thank you.
It seems the retweet goes to the tweetmeme site, not to a person’s followers. Is that right?

Again, thank you!

Posted by Susan Ireland
July 14, 2009

Thanks a lot working good in my blog

Thanks for making it in simple code

Posted by IsHu
July 14, 2009

It works great!! I was actually looking for this for some time now.

Thanks!

Posted by Excel Matic
July 16, 2009

Great work …. i was always using the the ending up with twitter widget on my blog which looked very erroneous..but now i am on 9th cloud :)

Posted by Bilal
July 22, 2009

Great post. Very helpful.

How do you add “RT @username”?

Posted by Osman
July 22, 2009

I have 3 in my template. Should I add the code in front of each or just the first one?

Thanks again.

Posted by Osman
July 22, 2009

@ Osman : If you are talking about <data:post.body/> code, then just check your template again. All templates have this code only once.

Posted by Bapun
August 10, 2009

Many thanks!

Posted by ThePekingOrder
August 17, 2009

Thank you. I’d been trying to do that all night, then found your clear instructions!

August 21, 2009

Did not work well at all. The functionality was there but it counts all the “retweets” and gives the same number for every post. Not at all how it’s suppose to work.

Posted by Sozo
September 6, 2009

This is a great site. Thanks for the information on how to add retweet this button to blogger.

Posted by Leah
September 6, 2009

@ Sozo : Follow all the steps carefully and it should work normally.

Posted by Bapun
September 9, 2009

cool~nice share!!

Posted by WMgeek
September 14, 2009

It Isnt working friend.

Tried Many times =(

Posted by Rizwan Ibrahim
September 23, 2009

Thanks very much, I like the compact style

September 25, 2009

Hi! I wanted to put retweet button on left side on my blog but… I have a problem coz I see that your left and right code look the same. Could you help me with this?
Maybe would be better if you could email me.

Posted by Deva84
October 21, 2009

You explained it quickly and it is very easy to apply. Good job!

Posted by raoul
November 4, 2009

Thanks I was searching for it and find it on your site thanks again.

Posted by rajkumbh
December 28, 2009

thanks a lot your blog has done so much for my blogspot.
i don’t know how to pay you but to say a BIG THANK YOU.
keep the good work.

my blog is all about online marketing and free ways to make money online

Posted by ceejay
December 28, 2009

good post but i thought you have to post your tweet on your twitter account.

Posted by ceejay
January 20, 2010

It works like a charm… thanks…

Posted by ATOzTOA
January 21, 2010

the brief explanation was just great. i successfully installed it on my blog. thanks.

January 22, 2010

Great trick .. I added it to my blogger

Posted by Lee
January 24, 2010

wen i installed d code the retweet buttons comes inside the post

Posted by himanshu
February 18, 2010

Hi,

Compact button looks grate, but its showing the results for the site, not individual posts (eg every post shows the same number).

Can anyone offer any suggestions please?

Ta!

Posted by Oliver Helm
February 18, 2010

@ Oliver : Add the following piece of code just below the first line of the code:

tweetmeme_url = &#39;<data:post.url/>&#39;;
Posted by Bapun
February 19, 2010

managed to add it but keeps saying already retweeted and all the numbers are the same for each post

Posted by Maggie
February 26, 2010

your instructions were so easy and effective – thank you so much!

Posted by Louise
Leave a comment

(required)

(required)


Top incoming search terms for this post