Home Tutorials Fonts Lists Freelance Web Designers List Feed RSSContact Me

Sunday, January 11, 2009

Add TwitThis on your Blogger template and drive more traffic on your website

Save to delicious 0 hits

TwitThis is an easy way for people to send Twitter messages about your blog post or website. This tutorial illustrates a simple way to add a TwitThis link on each post of your Blogger template. I suggest you to try it because it's very useful and drive a lot of traffic on your website if you have a good Twitter network.

To add TwitThis on your Blogger template you can using the code you can find here. That code uses JavaScript. If you want use a simpler way to add it use this alternative.

HTML code
Sign-in in your Blogger dashboard and click on Layout Tab > Modify HTML. Select expand widgets option and copy the following code where you want in the posts section (for example below the post title).

<a expr:href='"http://twitthis.com/twit?url=" + data:post.url + "&amp;title=" + data:post.title'>Twit This!</a>

Copy and paste the code exactly how it is in the box above! Don't remove spaces!

CSS code
If you like my TwitThis link (), add this class in your CSS file and use it in the previous link:

.share-twitthis{
background:url(http://tinyurl.com/ay2jsc) 10px top no-repeat;
padding-left:42px;
font-size:11px;
line-height:18px;
}

That's all!

Sponsored Links
Share this post
Share on Facebook
Share on Twitter
Share on StumbleUpon
Share on Delicious
Share on Reddit
Share on Digg
Share on DesignFloat
Share on Technorati
Feeds RSS Subscribe to Feeds RSS
Old Comments
ZhouGe said...

I think it is useful for bloggers.

piratasdaprotasio said...

Thank you very much!
Love your blog.

Pat Anzanello

phoenix2life said...

Wonderful !!! Nice simple approach though elegant way to adding twitter to the blog. Blogging supplemented with micro-blogging.

Project-Dragon said...

Doesn't work for me on Blogspot:
"The reference to entity "title" must end with the ';' delimiter."

jcargoo said...

@Project-Dragon
Just use "&" instead of "&" to indicate an ampersand so you can solve your problem.
Regards
jCargoo

Naeem said...

i succesfully installed it on my blog.

Hein Maas said...

Hi,

Great tutorial, does this work the same on a wordpress blog.

Regards,
Hein

MissandMisterKinkY said...

"(for example below the post title)"...

Might come in handy to let new/novice users of Blogger know where they can find the spot to put the twittthis html if they want it under the post title in their template.. no?

In your example that would be just below this line: div class='post-header-line-1'

Michael said...

This is an outstanding idea. Thanks.

(oops, here's the dreaded however...)

However, in attempting to incorporate it on my wordpress (self-hosted) blog, the formula doesn't seem to be working. I've tried it with both the & and the &-amp; equivalents.

(note, your commenting app doesn't allow for html-equivalents of "charactors", hence my typing above of &-amp; )

KhanhLNQ said...

Actually, I'm not comfortable giving my username/password to a third-party site. I think you should link directly to Twitter site itself like what Smashing Magazine does.

piratasdaprotasio said...

Just to show the final look (twitpic) in my blog and to say thank you again!

Pat Anzanello

piratasdaprotasio said...

Just to show the final look (twitpic) in my blog and to say thank you again!

Pat Anzanello

Shelli said...

I've tried using TwitThis via Seth Godin's blogs and others... Trying to post articles to Twitter.

TwitThis says I was successful, but the tweets NEVER show up.

Any ideas? Have done this several times. Every time says it's been tweeted, but never is.

Help, love this idea, but needs to work for me!

Thanks
Shelli Johnson
tw: yellowstoneshel
c-site: yellowstonepark.com
b-site: yellowstoneinternational.com

Jakolien Sok said...

Hi :-) love this idea and tried it on my blog but must be putting in the wrong spot or something? Could u have a look @ it please? My blog: www.recruitmentnewstyle.com

Thanks a bunch!

Mia Dragostin said...

antonio, you're great! is working!!!!! thaaanks! mia :-)

Marcy said...

Hello there! I'm Marcy, now a follower of your blog, hope you don't mind. I need all the help I can get! =] Keep up the good work and have a wonderful day! xo~

Home Theater Guy said...

thx! i have the button under my title!! How could I put the twitthis near the the end of the post? what part of the html layout widget code do i look for?

thx!!

About Me

I am Antonio Lupetti, Engineer, Pro Blogger, Mac user, Web addicted. Rome, IT.
Feeds RSS Contact Me

SubscribeFeeds RSS

Contact Me Enter your email address:

SubscribeLatest posts

SubscribeHot Links

Subscribe Design News

Apple Reviews and News
CSSRockstars - You Design, We Code. Your PSD to HTML/CSS for just $149