just like that

  • Home
  • Make Money
    • Your Click
    • Others Click
    • Other Programs
  • Technical Support
    • Windows
    • Android
    • Other
      • how to do
  • online Is On
    • Online Media
      • Online Fm Radio
      • Online Tv
      • Online Games
    • Funny Videos
    • Downlaod Mp3 And MP4 Songs
    • Most Important Videos On Youtube
    • How To Make
  • Tourist Place
  • Health
    • Food Medicine
    • Workout
  • Image Collection

Saturday, 19 November 2011

Add the Tweet Button to your Blog without JavaScript

 22:09     No comments   



Twitter now offers a simple button that you can add to your website to help visitors easily share your content on Twitter. Here’s why this “official” Twitter button may be better than your current solution:
  • It displays the number of times a particular link has been shared on Twitter – this makes it easy for your visitors to quickly guess the popularity of your content.
  • It uses t.co for shortening links (see example). Since t.co is owned by Twitter, your shortened links are likely to stay around for a long long time.
  • When someone shares your page on Twitter, you have an option to recommend him up to two Twitter accounts after he is done sending the tweet. That may help you win new followers who may otherwise not know that you even exist on Twitter.
Writing the Tweet Button in plain HTML
Twitter offers a JavaScript based button but you can also write the same as a simple HTML link. The advantage is that it won’t add any extra weight to your blog and you’ll also be able to use it in places where JavaScript is not supported (like your email newsletter).
Here’s an example of such a link – Tweet This.
If you are on WordPress (the self hosted version), you can add the following code anywhere in your template (single.php):
<a href="http://twitter.com/share?url=<?php echo urlencode(the_permalink()); ?>&amp;text=<?php echo urlencode(the_title()); ?>&amp;via=blogaccount&amp;related=myaccount">Tweet this</a>
If you are on Blogger, the code will be something like this. Search for the class "post-footer" in the Blogger XML template and copy-paste this snippet somewhere near it.
<a expr:href='"http://twitter.com/share?text=" + data:post.title + "&amp;url=" + data:post.url + "&amp;via=blogaccount&amp;related=myaccount"'>Tweet this!</a>
Remember to replace the word blogaccount with the Twitter handle of your blog (example,labnol_BLOG) and myaccount with your own Twitter handle (example, labnol).
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 comments:

Post a Comment

Video Game Godfather - Work From Home Selling Video Games Online

Click Here!

Appszero - Build Mobile Apps With Zero Coding

Click Here!

Translate

I Got Total Views

Popular Posts

  • 10 Different Url Shorteners That Give You Addon Benefits
    There was a point of time when no one ever considered the fact that there ever might arise a need for a URL shortener. In recent times, howe...
  • Create Short URLs with the Goo.gl Bookmarklet
    If you are looking for a way to create your own short URLs with goo.gl but without installing the Google Toolbar, here's a quick bookma...
  • how to avoid ads in youtube
    IT'S just simple right click select pop out thats all  
  • Live Flight Tracking on Google Maps
    Casper is a brilliant mashup that displays movement of incoming and outgoing flights on a Google Map  live . The airplanes are colored based...
  • Twitter Tip: Add a ‘Tweet This’ Link to your Blog on WordPress or Blogger
    Twitter can be a great source of traffic for your blog. To give you an example, my article on bookmarklets was on the delicious popular sect...
  • Things You Should Do After Installing WordPress
    The WordPress tips and hacks mentioned below apply to a self-hosted installation of WordPress. You may skip if your WordPress blog is hosted...
  • How to Set Up iCloud For Your iOS Devices
    Apple has introduced iCloud and Wi-Fi connectivity for Mac and other mobile devices . This is the most unique feature of  iOS 5 for iPad, iP...
  • earnparttimejobs
    earnparttimejobs:-                            Indians Earn Rs.50000/month via part time jobs. Easy form filling data entry jobs Earn Rs.25,0...
  • How 2G Works
    How 2G Technology Works Advancement in mobile phones technology has been marked by generation (G). Analog phones are related to the 1st gen...
  • Add Google Autocomplete to other Search Engines
    When you type a few characters in the search box of your favorite web browser - be it Firefox, Internet Explorer or the Omnibox of Google ...

Recent Posts

Categories

  • 12b
  • 180
  • 365 Kadhal Kadithangal
  • 3g
  • 4 Students
  • 7am arivu video songs
  • affiliate
  • Airtel Free Live Tv
  • Audio CD/DVD Burning
  • blog tricks
  • blogging
  • browser
  • Dish tv
  • download manger
  • download soft
  • earn sites
  • facebook
  • Favicon to Blogger
  • free call
  • free sms
  • games
  • Gemini Comedy
  • google
  • gprs
  • health
  • hindi
  • How do I create a blog
  • internet
  • iPhone
  • java
  • Kavithai
  • LG
  • live mobile tv
  • live tv
  • mobile
  • mobile tv
  • motorola
  • movies
  • mp3 player
  • Nadanthathu Enna
  • Noika
  • old movies
  • online fm
  • online movie
  • online movies
  • online tv
  • Photoshop
  • samsung
  • Serials
  • software
  • sony ericsson
  • sql
  • Surya Hits
  • tamil
  • tamil movies
  • tamil video songs
  • tamilmobiletv
  • tech
  • telugu
  • top 10
  • TV SHOWS‎
  • video converter
  • Video Players
  • video songs
  • windows software
  • youtube

Blog Archive

  • August (36)
  • September (39)
  • November (715)
  • December (627)

About Me

My photo
punniyaseelan
View my complete profile
Powered by Blogger.

Sample Text

Copyright © just like that | Powered by Blogger
Design by punniya seelan | Blogger Theme by New Blogger Themes | Distributed By Templates