How do I put a "tweet this" button?

by 13 replies
37
Hey all,

Is it possible to put like a "tweet this" button under some of my articles on my website, so if people like it they can just go to twitter and tweet it? (I mean, the link to my website)?

Thanks,
Jack
#programming #button #put #tweet this
  • The basic code (this is with a text link not an image is):

    Code:
    <a href="http://twitter.com/home?status=Enter status message here" title="Click to send this page to Twitter!" target="_blank">Tweet This!</a>
    The "Enter status message here" bit should be changed with your message. This, when clicked, will insert the "Enter status message here" text into your visitor's Twitter status boxes. You can also use an image by doing:

    Code:
     <a href="http://twitter.com/home?status=Enter status message here" title="Click to send this page to Twitter!" target="_blank"><img src="TwitterButtonSource.jpg" width="xxx" height="xx" alt="Tweet this!" /></a>
    Obviously changing the src, width and height parameters as necessary
    • [ 4 ] Thanks
    • [1] reply
    • Many thanks

      After Looking around - I came across your post through Google of all the SE's

      Many thanks Very usefull indeed

      Hamant Much appreciated
  • The most popular (because it's free and brain dead simple) is to use the TweetMeMe code or widget:

    tweetmeme.com/about/retweet_button

    They have widgets for blogs, code for websites and some other platforms. Make sure you retweet yourself once or twice so your rewtweet button doesn't always say "0".
    • [ 2 ] Thanks
    • [2] replies
    • Yes, TweetMeme is a great and has analytics, etc. plus the code is off the shelf.
    • Using it too for my wordpress blog, it`s awesome!
  • If you use a Wordpress blog:

    <a rel="nofollow" class="tweet"
    href="http://twitter.com/home/?status=Reading @HomeBizNizz Blog:
    <?php the_title(); ?> http://blog.homebiznizz.net/?p=<?php the_ID(); ?>">
    <img src="<?php bloginfo('template_directory'); ?>/gfx_icons/tweet_15x14.gif"
    alt="" class="" />
    Tweet this!
    </a>
    • [ 2 ] Thanks
  • Take a look at AddThis - The #1 Bookmarking & Sharing Service

    They give you some code you can drop into any page, and lets your share with Twitter as well as Facebook and all the other social sites.

    -Ryan
    • [ 1 ] Thanks
  • If you're articles are all on a wordpress blog I would highly recommend the sexy bookmark plugin.
    • [1] reply
    • I have written a post about tweeting any message with a link some time ago (I can not post links yet but it is on second page on my blog - "How to make people tweet your message with one click?") - I believe it may be useful for you. If you want to automate it for any of your posts it would be better to use Wordpress plugin as mentioned above.
  • There's also a service that does a Tweet This button with automatic URL shortening at Ko.ly provides super simple URL shortening! !
  • Try addthis my friend or sharethis or onlywire. Onlywire offers 1 click and it submits to all bookmarking sites.
  • I am having trouble with my blogger blog and these codes

Next Topics on Trending Feed