<a expr:href=’”http://twitter.com/home?status=Reading ” + data:post.title + ” @YOURTwitterUSERNAME ” + data:post.url’ title=’Tweet it on Twitter’><img src=’http://LINK TO TWITTER IMAGE ON YOUR SERVER‘/></a>
A little explanation for the highlighted part of the code:
- Replace YOURTwitterUSERNAME with your twitter user name, if you wanna track and see who is sharing your blog posts. Otherwise simply delete @YOURTwitterUSERNAME.
- Replace the image URL http://LINK TO TWITTER IMAGE ON YOUR SERVER by the link for twitter image on your server.
- I have added ‘Reading’ before the twitter status, if you want you can change/remove it.
- Now add the resulting code to your blogger template. Which should be copied in the footer. Let me know if you need help in that.
The final code should look like it:
<a expr:href=’”http://twitter.com/home?status=Reading ” + data:post.title + ” @knowliz ” + data:post.url’ title=’Tweet it on Twitter’><img src=’http://lh4.ggpht.com/_4qUhcu23NoM/SHqbsDONCSI/AAAAAAAAGCE/MqYaroCiKCk/s144/itwitter.png’/></a>
- Go to Layouts.
- Expand your template under Edit HTML.
- Search for ‘p class=’post-footer-line post-footer-line-3′.
- Copy and modify the code as mentioned above in the article. (Be sure to take a backup of your template first.)
- Paste the modified code just after the line you searched.
Note:
Once you modify the template to include the above mentioned code.
- ‘Tweet this’ button will appear in every post automatically.
- You have to do it just once.
- Even the old posts on your blog will have this button automatically.
- When the reader click this button, it will include the URL of the post in the person’s tweet unless the readers intentionally remove it by editing the tweet.
If you have any suggestion for this post, drop in a comment. And if you like “tweet this” post and Follow knowliz on twitter.
Update # 2: (02/13/09) – Added details about changes you should see in your blog.








![What Apple can do with it’s cash? [infographics]](http://www.knowliz.com/wp-content/uploads/2012/01/wpid-apples-cash-50x50.jpg)


[...] How to add “Tweet this” button to Blogger Template? [...]
How to add "Tweet this" button to Blogger Template http://t.co/PX5NIBk
I loved this tip I just did it and have no problem using it and had no problem finding it ether.Thanks
RT @knowliz: How to add "Tweet this" button to Blogger Template #knowliz http://bit.ly/bKGFHU
How to add "Tweet this" button to Blogger Template | Knowliz http://t.co/RTQSUoD via @knowliz
How to add "Tweet this" button to Blogger Template | Knowliz http://t.co/IkwCmPq via @knowliz
Anurag I don’t know if you even monitor this page any longer, but I need help getting the tweet this button to show up on my blog! I’ve been trying for several days, several different sources… Help, please!
Thank you.
Crystal
crystalclearproofing@charter.net
Yes I do monitor every page of this blog. Let me know what kind of help you
need.
Anurag Bansal
Sent from Nexus One
How to add "Tweet this" button to Blogger Template http://t.co/PhHKmLP via @technomania
How to add "Tweet this" button to Blogger Template | Knowliz: http://bit.ly/d1D7En
@Sarahloolaa http://bit.ly/KeI7R that help? it says it will automatically be in every post x
I could not find
RT @technomania How to add "Tweet this" button to Blogger Template http://bit.ly/Ik6fM
Just what I’ve been looking for! Thanks for the share!
That’s really very cooool! Now my Blog also looks beautiful and capable of sharing across the borders… Thanks!!!
RT @technomania: How to add "Tweet this" button to Blogger Template http://bit.ly/160kGC
very good
Thanks for the info. Its really very very useful for all bloggers. Keep updating with latest latest useful info
Thanks
I had trouble finding the line of code in my template too because the line is actually this on my blog:
Hope that helps anyone having trouble. I did a Find for “post-footer” and it was about the 5th result. Good luck and thanks so much to the author for this really helpful post!
There’s also a service that does a Tweet This button with automatic URL shortening at http://ko.ly !
RT @technomania How to add "Tweet this" button to Blogger Template http://bit.ly/160kGC
[...] for updates on this topic.Powered by WP Greet BoxShare Remember, a while ago we covered “How to add Tweet This to Blogger templates?“. And if you know, recently, Facebook has also allowed an easy integration of an Official [...]
Works great but, is there a way to center the Twitter logo in the footer?
Thanks!
@Darlene:
If you want you can use and download the image from my blog. Please don’t link to the image from this blog because of the bandwidth issues.
You may just Right-Click on the image and Save to Desktop.
Hope it helps.
Thanks
Anurag Bansal
where do i find the twitter logo…thanks ahead of time…
darlene
@Darlene:
You need to upload the ‘Twitter Logo’ to any of the image sharing websites, like Picasa, Imageshack, Photobucket etc.
One you upload the image there, you can find the link to this image – Generally it is called ‘Direct Link to the image’. Just copy this link and replace it in the code.
Hope it helps.
Cheers
Anurag Bansal
this is great info…thanks….i need to know where i find the “link to the twitter image on your server”….this may be a silly question but i am having an issue getting this on my blog and i am thinking this may be my issue…
thanks ahead of time
darlene
Did you check the box to expand the template under Edit HTML? You won’t find the code it is not expanded.
I can’t find the code details in my ‘edit html’ section.
any thoughts on about how far down i have to scroll? maybe copy the entire code and hightlight or screen shot it?
hi
i currently entered the code
in this site
http://www.bonanzle.com/booths/RHINESTONE/items/PUZZLED_QUEEN_RHINESTONE_SHIRT
and I can’t seem to click on it
any suggestions…thanks
Hi i add the code and the twitter image comes up, but the tweet this thing doesnt – can you help? http://www.plenty2say.com
Generally, when you post, twitter will shrink the URL by itself. But yes, while posting it will consume some of the precious 140 characters.
I am trying to find a solution to this, if you have any suggestion, they are most welcome.
Cheers
Great concept – any suggestions as to how one might shorten the URL’s automatically?
I just put your code into my blog and then clicked on the Tweet it on Twitter button and got the full URL showing up which made it too long to tweet without taking it out and shortening it on tinyurl.com.
wonderful post! havent had the chance to fully explore twitter but will certainly keep this hack in mind. thanks a lot for sharing!
Knowliz thnx for the post
@Gabe’s Wit:
I have updated the article with the information about how to add this code in your template.
Please follow the details and then try again.
Currently, it looks like you have copied the code into a post where “expr:href” doesn’t seem to create a link.
Hope it helps.
Cheers
My link isn’t active. I can’t figure out why I can’t click on it. Any thoughts? This is on blogger.
Yes, once you add this code into your template, ‘Tweet this’ button will appear in every post automatically. You have to do it just once, even the old ones will have this button automatically.
When the reader click this button, it will include the URL of the post in the person’s tweet unless the readers intentionally remove it by editing the tweet.
To put this into your blogger template:
Expand your template under Edit HTML.
Search for ‘p class=’post-footer-line post-footer-line-3′.
Copy and modify the code as mentioned above in the article.
Paste the code just after the line you searched.
Hope it helps.
Thank you for this post. Pardon my ignorance, but I have some questions. Does adding this code into my blogger template put the button in each post I write? Or do I have to add code to each post?
When a reader clicks the “tweet this post” button, does it include a url to the post in the person’s tweet?
Finally, please tell me exactly where in the template I add the code — where in the footer?
Thanks so much!
you can use this script also : http://i-stuff.blogspot.com/2009/02/add-tweetthis-button-your-blog.html
Love the code, but I can’t seem to find the right place to put it, as in, where’s the footer?
s
thx!