How to add Twitter Retweet Button for Blogger Blogs

by Simrandeep Singh on March 29, 2009

Twitter is best social networking service. It helps a lot in deriving traffic to your blog. I use twitter daily to retweet the best posts from different sources with my followers. If you use twitter in proper way, you can double your blog traffic. Retweets from users help posts to get popular very soon. So why not add it on your posts ? Retweet button let your visitors easily retweet your content on twitter.

In this post I’m going to use Tweetmeme to add a twitter retweet button to blogger posts. If you want to add a twitter retweet button to your posts, just follow the steps given below :

Add a large size Retweet button

  1. Sign in to your blogger blog and go to
    Dashboard -> Layout -> Edit HTML

    and click on Expand Widget Templates

  2. Now find the following code
    <div class='post-header-line-1'/>

    and paste the following code below it

    <script type="text/javascript">
    tweetmeme_url = '<data:post.url/>';
    </script>
    <script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"> </script>

    The button will look like this :

    Retweet Button Large

  3. Save your template

Add a compact size Retweet button

If you don’t like the large button, you can add a compact button. To add a compact button, follow the steps given below :

  1. Sign in to your blogger blog and go to
    Dashboard -> Layout -> Edit HTML

    and click on Expand Widget Templates

  2. Now find the following code
    <div class='post-header-line-1'/>

    and paste the following code below it

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

    It will look like this

    Retweet Button Compact

    Don’t forget to Save Template after adding the code.

  3. That’s all

UPDATE : To add Retweet button at the bottom of your posts, follow these steps :

  1. First go to
    Dashboard -> Layout -> Edit HTML

    and click on Expand Widget Templates

  2. Now find <data:post.body/> and paste the code of Retweet button below <data:post.body/>
  3. Save your template. Thats all

Article by

Simrandeep is the owner and editor-in-chief of TricksDaddy. He is a part-time blogger from India. Catch him on Facebook and Twitter.

Simrandeep has written 527 awesome articles.

{ 62 comments… read them below or add one }

Gadgets and Technology December 13, 2009 at 10:52 am

Hi thanks for sharing this tweak, one question though, how can i add this retweet button to make it in line with my post title? I tried to follow the steps you provided but the retweet button shows below my post title.

Reply

Stacy (Mama-Om) January 14, 2010 at 8:32 am

Hi,
I have the tweetmeme installed but it is not working as I would like it to.

When I put the code below post-header, it appears ABOVE the body of my post rather than embedded within it. I would really like for it to appear inline in the content of my post. However, if I move it below post-body, it only shows up if a specific post URL is clicked.

For example, when it is placed below post-body, if you were to go to the homepage of my blog http://mama-om.blogspot.com, you don’t see the tweetmeme. But if you click a specific post title, you see the tweetmeme.

I would like for people to see the tweetmeme INLINE in each post when on the homepage. How can I do this in blogger?

Thanks!
Stacy

Reply

freezipe January 22, 2010 at 7:22 pm
sohel rana March 10, 2010 at 7:59 am

Thanks.I have used the retweet button in my blog. If you have something new please inform me. Again alot of thanks

Reply

angeljme March 14, 2010 at 5:48 am

this is really great! thanks

Reply

Kayla Karma March 30, 2010 at 4:29 am

I added the code. The number of tweet shows up but the green retweet button does not work. Help!
.-= Kayla Karma´s last blog ..143. Mad Hatter Tea Party =-.

Reply

Simrandeep March 30, 2010 at 9:25 am

Hey I tried the retweet button on your blog. It’s working fine for me. Where are you getting the problem ?

Reply

Kayla Karma March 30, 2010 at 10:57 am

Nevermind. I think it works. I asked a friend to try it. I think I just needed to be logged out of Tweetmeme in order for the retweet function to work. Thanks. I do have one question though, can I move it higher so that it’s on the same line as the post header, instead of below it?
.-= Kayla Karma´s last blog ..143. Mad Hatter Tea Party =-.

Reply

angeljme April 7, 2010 at 10:26 am

how can I make the retweet button float on the right instead of the left side of the post?
.-= angeljme´s last blog ..Ragebux, Scam or Legit? =-.

Reply

Simrandeep April 7, 2010 at 8:51 pm

To make the button float on right side add the button code between :

<div style="float:right">

Button code here

</div>

Reply

Michelle T. April 8, 2010 at 8:25 pm

Is there a way to code this to use ow.ly instead of bit.ly? Thank you so much, I’ve been searching for a way to do this inline with my my posts for a long time!

Reply

Simrandeep April 10, 2010 at 9:53 pm

Yes you can use ow.ly instead of bit.ly. For this use the following code :

<script type="text/javascript">
tweetmeme_service = ‘ow.ly’;
service_api = ’12345678910′;
</script>
<script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"></script&gt;

Reply

Atif April 29, 2010 at 2:47 pm

Thanks a lot simran, this is very useful post for me…
.-= Atif´s last blog ..Add Related Posts To Every Blogger Post =-.

Reply

Simrandeep April 29, 2010 at 4:11 pm

I’m glad that you like my post :)

Keep visiting here for more such posts.

Reply

Mikayla May 1, 2010 at 1:49 am

I get this error when I try to put the code:(

We were unable to preview your template
Please correct the error below, and submit your template again.
Your template could not be parsed as it is not well-formed. Please make sure all XML elements are closed properly.
XML error message: The element type “div” must be terminated by the matching end-tag “

Reply

Simrandeep May 1, 2010 at 9:14 am

Did you paste the code exactly ?

Reply

Mikayla May 1, 2010 at 9:25 am

yes I did

Reply

Simrandeep May 1, 2010 at 10:16 am

Can you share your blog URL ?

Reply

PitOwner May 27, 2010 at 7:37 am

Thank you Simrandeep!
It works great. Thank you for making this easy.
One question: Is it possible to change the button color?
Not important — but if it can be done I’d like to.
.-= PitOwner´s last blog ..Pit Bull Deemed Not Dangerous =-.

Reply

Simrandeep May 27, 2010 at 8:59 am

No, you can not change the button color with tweetmeme button.

Reply

PitOwner May 27, 2010 at 9:17 am

Okay, thanks again. Great job! I’ll be back.
.-= PitOwner´s last blog ..Pit Bull Deemed Not Dangerous =-.

Reply

Pooja May 28, 2010 at 10:33 am

Hi,

I have added this retweet button, but is there anyway i can disable the ‘view details’ functionality. If a viewer clicks on the cloud with the count in it, it directs to the tweetmeme site which shows the details of who tweeted. I dont want anyone to be able to check these details. pls help. thnx

Reply

speak_english July 17, 2010 at 2:26 am

I couldn’t find the best place to put it, I’m a little bit confused

Reply

Normalyn September 16, 2010 at 4:24 pm

Thank you :) It worked!!!

Reply

Lesley September 24, 2010 at 8:24 pm

Thank you SOOOO much!!! This worked perfectly!! :)

Reply

Mr3dds December 25, 2010 at 8:57 pm

nice and perfect
thanks

Reply

Mobwiki February 14, 2011 at 1:55 am

Thanks very this info is very helpful..

Reply

Kerry April 7, 2011 at 9:34 pm

Thanks, I have been looking for that particular snippet. I’ve just added it.
Cheers:)
Kez

Reply

Leave a Comment

{ 3 trackbacks }

Previous post:

Next post:

© 2008-2011 TricksDaddy. All Rights Reserved | Privacy Policy | Sitemap | Designed by Simrandeep Singh