Add Tweet This Without a Plugin!

February 27, 2009 — 35 Comments

byebyetweetthis

****************UPDATE****************

I’ve created a MUCH BETTER VERSION here.

****************UPDATE****************

I have a few goals in mind when I design blogs and one of them is speed. It have to make the blog as fast-loading as humanly possible. I don’t want anyone to have to wait for anything, if I can help it.

The second goal is aesthetic appeal and simplicity in that design schematic. I don’t like things that “break” the flow of the design aesthetic or that “interrupt” the experience. Again, if I can help it.

Tweet This, a very nice WordPress Plugin, has been breaking both of these rules… but no more. I’ve decided to get rid of it completely and replace it with a very simple and clean design aesthetic, right where it should be.

tweet_thisSee? Very nice. I like it.

I’ve now completely gotten rid of what I consider a “bloated” and “heavy” plugin and with one small line of code have provided my readers with the same functionality without having this honking “TWEET THIS” image to detract from the experience.

That’s speed. That’s design aesthetic. That’s appeal. That’s smoothe. That’s… uh. epic?

Puaha.

Want to do the same thing? Just add this line of code in your single.php file (inside the “loop”) and you’re good to go.

<a href=”http://twitter.com/home?status=I just read <?php the_permalink(); ?> on www.Human3rror.com!” title=”Send this Post to Twitter!” target=”_blank”>Tweet This Post on Twitter!!!</a>

Word.

John

Posts Twitter Facebook

I'm passionate about startups, blogging, and human capital. I love what I do and who I get to work with. I am incredibly blessed.


35 responses to Add Tweet This Without a Plugin!

  1. John,
    Cool – how does that work w/ the TweetSuite plugin (which though I have installed has never seemed to ever work, for whatever reason) … TweetSuite already has this "Be the first to tweet this post" … would you recommend ditching that, and just doing this? (especially since tweetbacks have yet to ever appear on my blog, even though I know they have been tweeted). Maybe the tweetback issue and the syncing issue w/ IntenseDebate are related. I dunno.

  2. probably a dumb question but what is the "loop"?

  3. Want to do the same thing? Just add this line of code in your single.php file (inside the “loop”) and you’re good to go.

    If I actually knew what that meant I might try it.

  4. John – ok, so I did this, but my tweets are inserting the %20 for spaces – how can I prevent that – when you click my link, you get this: I%20just%20read%20http://www.fredmckinnon.com/myblog/2009/02/27/the…

    I know that %20 is code for a space … how can I not make that happen, since you have spaces in your code as well? Is this an encoding issue on my server?

  5. "LOOP" ? ? ? ?

  6. I have been using a similar code but I have mine saying this "Currently @beyondrandom reading (here is where I put the call for permalink). That in turn shows off my Twitter account to the "tweeters" followers. I have been reading your site for a few days now and Im become a big fan! Thanks for sharing! oh and P.S. I love the theme! lol

  7. oh… the “loop” is the wordpress function call for the content of the post.

  8. dude. you make me laugh. perhaps you need to migrate first…? i can help!

    ;)

  9. Nice.I don’t know there is a good way to add tweet without a plugin.

  10. interesting facts June 4, 2009 at 9:42 AM

    haa cant believe they had a plugin for such a simple line of code – well its less stress on wordpress backend I guess

  11. You rock man, this is so much better then using a WordPress plugin! Kudos!

  12. Very helpful information!

  13. How did you get those buttons on the left that follow us as we scroll the page? <<<<<<<< tweet fACEBOOK AND ADD ?

Trackbacks and Pingbacks:

  1. ‘Tweet This’ Using TinyURL and NO Plugin v2.0 - March 4, 2009

    [...] 1.0 of “Tweet This Without a Plugin” was pretty awesome, but it wasn’t [...]

  2. When URL Shorteners Die … | FredMcKinnon.Com - July 4, 2009

    [...] error codes because of my “TweetThis” plugin.  (I just wasn’t able to get John’s TweetThis without a plugin to work on my server, [...]

Leave a Reply