Adding Tweet This Button To WordPress

Aug 18th, 2010

You may know by this time that Twitter has made simple adding Tweet this button on you site. Adding tweet this button on your blog or website is very easy. It is as easy as adding Facebook Like button.

Here is the code I am using, after removing Tweetmeme button. Tweetmeme button uses heavy JavaScript code.

<a class="l-fl" href="http://twitter.com/share?url=http://www.satya-weblog.com<?php echo urlencode($_SERVER['REQUEST_URI']); ?>&text=<?php the_title();?>&via=satya61229&related=webscripting" target="_blank"><img src="http://lh3.ggpht.com/_Ve5n9uU6iBI/TGWNgnlv6II/AAAAAAAABIo/dbXSzhuDARw/s800/twitter.png" width="65px" height="23px"/></a>

Values to change are: 1. Site address (http://www.satya-weblog.com), 2. via (satya61229), 3. related (webscripting). Related is an extra account you can give so that those who tweet your post can be given option to follow both account.

For more options for adding Tweet/reTweet button, head towards Twitter Website.

 
Possibly Related posts:
Comments are open for an year period. Please, write here on Facebook page.

Mobify empowers marketers and developers to create amazing mobile web experiences. Tap to learn more

Mobify