post-page

WordPress and the new Twitter Button

6
responses
by
 
on
August 15th, 2010
in
HOW-TO, WordPress, WordPress Plugins, WordPress Tips

I’m sure you’ve all heard about the new Twitter button, which finally provides an official way to share links to Twitter and display the number times each link has been shared, but how do you go about adding it to WordPress?

If you love messing with your theme, you can use the official Twitter button generator to generate just a few lines of HTML code that can be inserted into your theme templates, but why not use a plugin to simplify the whole process? I highly recommend Simple Twitter Connect. This plugin, or rather series of plugins, will provide a simple yet customizable way to automatically add the new Twitter button to your posts and pages. You’ll also enjoy a wealth of additional features, including the ability to automatically tweet your posts while publishing, display a list of followers, use your Twitter credentials to login to the admin panel, and allow readers to post comments with their Twitter credentials.

Perhaps Simple Twitter Connect is a little bit more than what you need. In that case, try WP Tweet Button for a simple Twitter button only experience.

If you’re a WordPress.com user, simply visit the Appearance/Extras section of your admin panel and select “Show a Twitter ‘Tweet Button’ on my posts.”

heading
heading
6
Responses

 

Comments

  1. @TweetSmarter (1 comments.) says:

    Do any of these incorporate @tschellenbach’s fix http://j.mp/9aW6aW

    Instead of the standard Twitter version:

    Use the async method, or your site can have trouble loading when Twitter is down:

    //async script, twitter button fashiolista.com style
    (function() {
    var s = document.createElement(‘SCRIPT’);
    var c = document.getElementsByTagName(‘script’)[0];
    s.type = ‘text/javascript';
    s.async = true;
    s.src = ‘http://platform.twitter.com/widgets.js';
    c.parentNode.insertBefore(s, c);
    })();

  2. Richard Hay (32 comments.) says:

    I have been using STC for a while now and was glad to see they incorporated this within just a day or two.

  3. Mark Ghosh (386 comments.) says:

    Added STC to this blog. Thanks for the suggestion and thanks to Otto for some fantastic work, as usual!

  4. Andy Beard (25 comments.) says:

    Many of the plugins I have seen have the following problems

    1. Don’t handle comment pagination, as they assume the plugin will only be on the single page.
    2. If the links appear in feeds, they don’t add full parameters to the share links so the links still work
    3. If javascript is switched off, whilst a link can be created based upon a referrer, the Tweet text is not propagated.

    That is why I knocked together a quick tutorial on creating a shortcode, though all of it could then be incorporated in a plugin.

    http://andybeard.eu/2907/bette.....utton.html

    Also that Async code has no significant benefit, because currently Twitter serves the javascript from Akamai.
    If Akamai is down or slow, so is most of the internet.

    I still think Topsy in many situations offers a better Tweet count and overview of tweets for a story, & Tweetmeme have the best graphic counter that works in feeds.

  5. Simone (1 comments.) says:

    Nice article!!
    I put the tweet button on my blog and I feel good.
    I just believe that there is a problem with the counting.

    Has anyone had this problem?
    Thanks



Obviously Powered by WordPress. © 2003-2013

page counter
css.php