So as expected, Twitter rolled out its official tweet button on Thursday. There are a lot of customization options which where not possible in tweetmeme or topsy’s button. Currently, there is no plugin for wordpress which offers this button, so you need to add it manually to your blog.
Here’s how you can add it to your blog:
For WordPress Blogs
Open single.php and paste this code where you like the button to appear:
<a href=”http://twitter.com/share” data-count=”COUNTER-STYLE” data-via=”YOUR TWITTER ID“>Tweet</a><script type=”text/javascript” src=”http://platform.twitter.com/widgets.js”></script>
Important: Replace YOUR TWITTER ID with your twitter username (without the @ sign) and COUNTER-STYLE as per follows:
- For Vertical Count — vertical
- For Horizontal Count – horizontal
- For no count — none
You can also add this code:
data-related=”ANOTHER-OPTIONAL-USERNAME:OPTIONAL-DESCRIPTION”
For Blogger blogs
Search for <div class=’post-header-line-1’/> (or <data:post.body/>)
and paste this code after it:
<a href=”http://twitter.com/share” data-count=”COUNTER-STYLE” data-via=”YOUR TWITTER ID“>Tweet</a><script type=”text/javascript” src=”http://platform.twitter.com/widgets.js”></script>
And you’re done 🙂
If you are finding this too difficult then to get your desired code just head over to Twitter’s Official Button Page.Get the code and follow the instructions above.
If you experience any problems, let me know and I’ll be glad to solve it 🙂