Want to create your own Tweet this button so it fits in with your design (or just doesn’t look like the official button) AND you want to include a hashtag?

Well, here’s what you can do:

  1. Create your link around text, an image or whatever else you can think of
  2. Point your href to http://twitter.com/share
  3. Add some querystring variables to generate the tweet
  4. That’s it!

So, the querystring variables I’ve used (for a basic tweet including hashtags) are:

  • url (this is needed in order to get someone to visit your site from the tweet)
  • text (this is the body of the tweet)
  • hashtags (a comma seperated list of hashtags placed at the end of the tweet)

Here’s the resulting link:

http://twitter.com/share?url=http://yourdomain.com&text=This+is+where+your+tweets+goes…&hashtags=hash,tags,here

There is also a list of the other variables you can use at https://dev.twitter.com/discussions/512

  1. meteoracle posted this