Share on Twitter link

twitter bird Share on Twitter link

Ever wanted to give your readers, or your client’s readers a chance to share the post quickly on Twitter?

The code is straight forward:

<a href=”http://twitter.com/home?status=Currently reading ” title=”Click to share this post on Twitter”>Share on Twitter</a>

If you’re using WordPress and want to automate this, simply use the following to insert the link to the current post in the loop into your link:

<a href=”http://twitter.com/home?status=Currently reading <?php the_permalink(); ?>” title=”Click to share this post on Twitter”>Share on Twitter</a>

Like this site? Subscribe on Facebook and follow on Twitter

Share this with friends:

Like what you've just read? Share it to your friends using your favourite service below:

Share on Stumble Upon Share on Google Share on MySpace Share on Delicious Share on Digg Share on Google Buzz Share via Reddit Share via E-Mail Share via Wordpress.com Share via Tumblr Share via Posterous Share via Newsvine

Comments:

  1. This post is very much helpful. Thank you.
    But, Instead of redirecting to twitter home and submit, I need, the status should be automatically updated. Can you please give any Idea?

  2. Hi, there is one issue that if I haven’t login yet, twitter will redirect to homepage with no status.
    Share on Twitter

  3. I would like to know … is there any way to shorten the URL as well using this method. A lot of our URL page is long.

  4. How about joomla?

  5. Is there a way to redirect to my site once someone has click the “tweet share” link from my site?

  6. Hi,
    Did you get an answer for the shortening of the url ?
    Thanks a lot !
    Gaweb

  7. Hi. Thanks for the tips!

    I’m having problems passing a URL with the character “&”. i.e.

  8. Can any one tell me how to do it on mobile browser.
    I tried doing it with – http://mobile.twitter.com/home?status=I would be happy if this gets posted . It didn’t work for me :(.
    Would be really thankful if anyone of you can help me on this.

  9. That’s great, but how do we get our Twitter Share Button to generate the same type of tweet that yours does? Instead of saying “Reading This – url”, to say “Title of Post – url via @…”? Thanks!

  10. Exactly what I needed: a simple and clean solution (just a “pure” HTML link). I am kind of tired of all those javascript based buttons like Twitter’s, Facebook’s, … that are hard to align, have different sizes sometimes, …

Pingbacks/Trackbacks:

  1. 19th of August 2009

    [...] Vía ‘Share on Twitter’ link [...]

  2. 2nd of November 2009

    [...] específicos que sirven también para medir el número de veces se ha distribuido ese contenido: compartir en Twitter y compartir en [...]

  3. 29th of March 2010

    [...] where credit is due though: this is mostly the work of Jamie Huskisson and his Webtools. I just made a slight improvement so that the resulting code valids as [...]

  4. 3rd of April 2010

    [...] Here is the Twitter share code, which can also be found at http://www.jhuskisson.com/code-tidbits/share-on-twitter-link. [...]

  5. 9th of June 2010

    [...] in sharing mood by filling out a review, why not capitalize on the good vibes? You could create a simple link that sends the url of the page to their Twitter account to send, or use a Facebook share [...]

  6. 12th of June 2010

    [...] Source : Jamie Huskisson [...]

  7. 14th of June 2010

    [...] in sharing mood by filling out a review, why not capitalize on the good vibes? You could create a simple link that sends the url of the page to their Twitter account to send, or use a Facebook share [...]

  8. 4th of July 2010

    [...] in sharing mood by filling out a review, why not capitalize on the good vibes? You could create a simple link that sends the url of the page to their Twitter account to send, or use a Facebook share [...]

  9. 7th of July 2010

    [...] Here is the Twitter share code, which can also be found at http://www.jhuskisson.com/code-tidbits/share-on-twitter-link. [...]

  10. 31st of October 2011

    [...] Share on Twitter link : Blog : Jamie Huskisson. Like this:LikeBe the first to like this post. [...]

Add a Comment: