How To Add Official Twitter Share Count (Tweet) Button To WordPress

by Simrandeep Singh on August 13, 2010

Till now we all were using the twitter share buttons powered by tweetmeme. Now Twitter has officially released the twitter share buttons for its users. So it’s the time to replace the tweetmeme button with official twitter share button on your blog.

Official Twitter Tweet ButtonIn this post I’ll share a tutorial to easily add official twitter share button to your blog. The official twitter share button is available in three styles and it uses the new URL shortener t.co

How To Add Official Twitter Share Button To WordPress:

  1. First copy the following code and replace tricksdaddy with your own twitter user name.
    <div style="float:right; padding:5px;">
    <a href="http://twitter.com/share" class="twitter-share-button" data-count="vertical" data-via="tricksdaddy">Tweet</a>
    <script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
    </div>
  2. Now sign in to your WordPress Dashboard and go to Appearance -> Editor and select single.php file.
  3. Paste the copied code into single.php file wherever you want your code to appear. The most appropriate place for the code is above <div class=”entry”>.
  4. Save the file and refresh your blog. Now you can see the new official twitter share button on your blog.

Customization:

The twitter button is available in following styles:

Vertical

No count

Horizontal

If you want the horizontal or no count button then simply change the text vertical in the code (Step 1) to horizontal for horizontal button or none for no count button.

If you want to align the button to left of your post then change the text float:right to float:left in the code.

Article by

Simrandeep is the owner and editor-in-chief of TricksDaddy. He is a part-time blogger from India. Catch him on Facebook and Twitter.

Simrandeep has written 527 awesome articles.

{ 6 comments… read them below or add one }

increase Google pagerank August 16, 2010 at 5:26 am

Twitter is a great place for marketing if your a business. It allows you to keep in touch with all of your clients as well as make new ones. We have used Twitter since it first came out and we are glad we did.

Reply

Kamal Patel August 16, 2010 at 12:18 pm

Nice Info…going to try on my site

Reply

Technoblogsite August 19, 2010 at 1:09 am

i am using digg digg plugin and they have updated with official tweeter button.. anyways thanx for sharing…. cheer!

Reply

VISHAL August 20, 2010 at 10:00 am

I will give it a try… but i think tweetmeme is also good 1

Reply

Techpraveen September 9, 2010 at 9:12 am

I need to give it a try in my blog ;)

Reply

TheShadow June 11, 2011 at 7:48 am

Thanks for the tutorial.But my tweet count still stands at zero after tweeting.How can i fix it

Reply

Leave a Comment

{ 1 trackback }

Previous post:

Next post:

© 2008-2011 TricksDaddy. All Rights Reserved | Privacy Policy | Sitemap | Designed by Simrandeep Singh