How to add Retweet button to blogger
89 COMMENTSTwitter also known as micro blogging is spreading among people like flu. With increase in its popularity, twitter has become a very good media for social marketing. Tweetmeme is a free service which makes twitting about blog posts very easy. The Retweet Button along with the option to retweet, also displays the number of tweets made about the post.
Here is how the Retweet Button looks like this:
Plugins to add the button are available for wordpress,joomla and drupal but there is none available for blogger, so i will show you how to add the retweet button to your blogger blog.
Follow these simple steps:
1. Go to Layout->Edit Html
2. Download Full Template
3. Check the Expand Widget Templates
4. Search for the code below:
<div class=’post-header-line-1′/>
a. For the full retweet button place the following code below the above code:
<div style=’float:right; padding: 5px 5px 5px 5px’>
<script type=’text/javascript’>
tweetmeme_url='<data:post.url/>';
</script>
<script src=’http://tweetmeme.com/i/scripts/button.js’ type=’text/javascript’>
</script> </div>
This will display the button on the right side of the blog post. To place the button on the left side just replace float:right in the code to float:left.
b. For the compact button instead of the code above place the following code:
<div style=’float:right; padding: 5px 5px 5px 5px’>
<script type=’text/javascript’>
tweetmeme_url='<data:post.url/>';
tweetmeme_style = ‘compact‘;
</script>
<script src=’http://tweetmeme.com/i/scripts/button.js’ type=’text/javascript’>
</script> </div>
5. Save the Template and you’re done!
UPDATE:
Tweetmeme Announced that:
By default the retweet button will be like this “RT @tweetmeme “. You can, however change the button to retweet your user account. By specifying the “tweetmeme_source” parameter in the JavaScript you can change the format to “RT @yourname (via @tweetmeme)”.
So now you can add your twitter user account by adding the code below:
<div style=’float:right; padding: 5px 5px 5px 5px’>
<script type=’text/javascript’>
tweetmeme_url='<data:post.url/>';
tweetmeme_source ='Your User Account';
</script>
<script src=’http://tweetmeme.com/i/scripts/button.js’ type=’text/javascript’>
</script> </div>
Replace “Your Twitter Account” by your twitter Account
Update #2:
Twitter announced:
Using your own URL shortener
TweetMeme now lets you specify a URL shortening service which you would prefer to use.
* bit.ly,
* awe.sm (API support),
* cli.gs,
* digg.com (API support),
* is.gd,
* TinyURL.com
* tr.im,
* su.pr (API support),
* ow.ly,
* lopurls.us,
* twurl.nl
This means you can use any url shortener of your choice which will be great and when the API support comes you could also many more features.
Here’s how you can add your choice of url shortener.
<div style=’float:right; padding: 5px 5px 5px 5px’>
<script type=’text/javascript’>
tweetmeme_url='<data:post.url/>';
tweetmeme_source ='Your_Twitter_Account';
tweetmeme_service = 'Your-url-shortener';
</script>
<script src=’http://tweetmeme.com/i/scripts/button.js’ type=’text/javascript’>
</script></div>
Replace Your-twitter-account with your twitter account(eg. for me virtuosoblogger)
Replace Your-url-shortener with your choice of url shortener (eg. bit.ly)
Problems? Tell me!!
| This entry was posted by Gautam on April 29, 2009 at 11:08 pm, and is filed under blogger, social media, twitter. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |
- Everything you ever wanted to know about Twitter | Charles Curle Design
- La madre de todas las listas de aplicaciones Twitter « Camyna.com
- 50+ Awesome Twitter Tips to become a Pro | Blog Godown
- La madre de todas las listas de aplicaciones Twitter « ENRIQUE SAAVEDRA
- La madre de todas las listas de aplicaciones Twitter (parte 1) « ENRIQUE SAAVEDRA
- How to add a Backtype retweet button to Blogger
- Twitter Tips Ultimate Guide | The Social Media Guide









about 2 years ago
Thank you!! This works great!!
Recent blog:=- Amazing Leg Tattoo 2
Reply
about 2 years ago
HI thanks so much. I digged this on google. I got it great post.
but added the retweet button fine, but i change the button to retweet my twitter user account. its NOT showing me my user accout RT useraccount. Still its showing me RT tweetmeme plz help
Reply
about 2 years ago
Check out the update section, it will help you add your twitter username
Reply
about 2 years ago
I tried that, but it pushes down my text as well as my buttons
It aligns the buttons underneath each other but leaves a big gap underneath my blog title before the text begins. The text begins after the second button instead of underneath the title and inline with the buttons on the right.
Reply
about 2 years ago
Make sure you are using float:right and padding, these will wrap the text around the buttons .
Recent blog:=- Browser Toolbars for Blog communities
Reply
about 2 years ago
Excellent, thanks for this
Reply
about 2 years ago
Trying to use this very helpful blog entry but can’t find the within my HTML code – even when expanded widgets.
I’m using blogger and havent modfied the theme other than using one of the preset themes… is there another piece of code I should look for to place the retweet code?
Thanks so much – great blog!
Reply
November 24, 2009 - 8:48 pm
you can try out the retweet plugin
Reply
about 2 years ago
Hi..
How are you ..i am unable to save template when i put this code in html..it gives this error
Your template could not be parsed as it is not well-formed. Please make sure all XML elements are closed properly.
XML error message: Open quote is expected for attribute “{1}” associated with an element type “style”.
Reply
December 4, 2009 - 8:39 pm
This error occurs if you don’t copy the code properly and check whether corrected or not, you can also convert the code in xml ready format by using the Ad Code Converter for Blogger
Reply
March 29, 2010 - 11:15 pm
I’m getting the same error message.
.-= Jo Anna´s last blog ..THE SAIA AND CHAGO SHOW: BUMBLE BEE TUNA — LA-LA LA-LA-LAAH LA-LA =-.
Reply
April 13, 2010 - 4:55 am
This doesn’t work for me either. I get the same error message as arslion above. Please help!
Reply
about 2 years ago
Thanks for this post
.-= SmashDesign´s last blog ..Hello world ! =-.
Reply
about 1 year ago
Well I keep trying to do this but I can’t get it to work.
I use Blogger and tried the Ad Code Converter but my posts are blank. There is no tweet me button, nothing. What am i doing wrong?
Thanks!
.-= Natalie´s last blog ..Book Review : Giv The Story of a Dog and America =-.
Reply
February 7, 2010 - 1:02 am
It may be because the font was italicized, try the same code and use it in your template. You don’t need to use the AD code converter.
I have fixed it. It should work by now.
Reply
about 1 year ago
Problem is, I used another template and I can’t find the piece of code. Possible to help?
Otherwise, a very nicely outlined tutorial. Thanks a ton, buddy!
Reply
about 1 year ago
Yes I’d like to try this trick since the present location only works on single page views, but I’d be much happier if could so twitch the code in its present location ?
Many of these blogger tricks are difficult to carry out when the hint location can’t be found by we blogger’s, as Gen comments above. Possibly since the code technicians’ experience only ever shows him, ‘a clean tray of best validator results’ ?
“Trying to use this very helpful blog entry but can’t find the correct place within my HTML code – even when expanded widgets.”
.-= pcd2k´s last blog ..Nature by Numbers =-.
Reply
about 1 year ago
I keep getting this:
Your template could not be parsed as it is not well-formed. Please make sure all XML elements are closed properly.
XML error message: Open quote is expected for attribute “{1}” associated with an element type “style”.
How do I fix that?
.-= monica of hola!design´s last blog ..New York through my lens =-.
Reply
about 1 year ago
Thanks a lot, I was tired of finding this twitter button solution for my blog
.-= Andy Mutt´s last blog ..Using drinkware products for Brand Advertising =-.
Reply
about 1 year ago
the float right option: is not working in blogger draft as the retweet button is not clickable.
I’ve narrowed it down to this line, but sure how to fix it. Align right works, but looks terrible. Float right means a button not working – see http://www.digitalurban.blogspot.com
Any help would be great!
Andy
Reply
about 1 year ago
Ok thanks for your help i will keep small compact button on my blog.
Reply
about 1 year ago
there are some errors in “Update 2″ code in this post. See this post for more details http://aext.net/2010/06/quick-tip-gain-more-traffic-for-your-blog-using-tweetmeme-su-pr/
Hariharakumar´s last [type] ..Turn Blogger Blog into Adsense Revenue Sharing Blog
Reply
about 1 year ago
when i do all your above given steps i done everthing as per your tutorial but i am getting this error & unable to save the error shown is “Your template could not be parsed as it is not well-formed. Please make sure all XML elements are closed properly.
XML error message: Open quote is expected for attribute “{1}” associated with an element type “style”.”please help me what to i do
Reply
about 1 year ago
How To Use The Retweet using Adl.ly
Please Reply Me back On my mail.
abhishek´s last [type] ..Welcome To PaidToClickin !
Reply
about 1 year ago
nice trick and your blog is very good
good´s last [type] ..Tom Clancys Splinter Cell Conviction
Reply
about 12 months ago
Brilliant, thank you!!
Roy´s last [type] ..The Different Kinds of CouchSurfers
Reply
about 9 months ago
How do we add the tweet button that floats down as the users scrools down?
Ranjith (SR) | A light hearted talk´s last [type] ..Have I achieved the real success- The success I have dreamt of
Reply
May 5, 2011 - 1:39 pm
That is a wordpress plugin, but I am sure that a person might have a workaround to install it into blogger
Gautam´s last [type] ..Writing for Money or Writing to Get Exposure
Reply
about 9 months ago
This button has never worked properly for my nevertheless blog. The gadget behaves incorrectly. I really need to remove it from my template, but get seriously lost every time I try to find the code in my template. Any suggestions would be mighty appreciated. Thank you.
pcd2k´s last [type] ..Protei- Autonomous articulated Sailing Robot To Clean Up Oil Spills
Reply
May 5, 2011 - 1:35 pm
try to search using the keyword “tweetmeme”. You will be able to identify the script code
Gautam´s last [type] ..Incorrect Views of Social Media
Reply
May 11, 2011 - 5:22 am
Thank you, Gautam, that helped and since I couldn’t find anyone to correct the code I have successfully located and deleted the widget.
pcd2k´s last [type] ..Time Lapse of the Seattle Space Needle
Reply
about 5 months ago
Perfect timing on this post. I have a blog that I’m trying to bring back to life, unfortunately I’m not too tech savvy. Sure hope I can get this re-tweet up.
Reply