Adding one click twitter follow button to your site

/
0 Comments

It looks like people are working hard at Twitter to stand high in competition. :D

Well this post is for the netizens of twitter. Twitter has recently released new feature which is single click follow button analogous to Facebook like button.

You must have seen "follow us on twitter" buttons previously on sites but that buttons are simply links which will redirect you to twitter pages & on that page you will find "follow" button. But this single click follow button will not redirect you to that twitter page you can start following from that site itself (of course you must be logged into your account for this).

So by adding this single click follow button to your site you can attract more followers on twitter. Also it shows count of followers.

Now to add this follow button you need to add following script to you site.

<a href="http://twitter.com/TWITTER_ID" class="twitter-follow-button">
Follow @TWITTER_ID</a>
<script src="http://platform.twitter.com/widgets.js" type="text/javascript">
</script>

Above script will show count of followers. So if you don't want to show count the use following script:
<a href="http://twitter.com/TWITTER_ID" class="twitter-follow-button"
data-show-count="false">Follow @TWITTER_ID</a>
<script src="http://platform.twitter.com/widgets.js" type="text/javascript">
</script>
Make sure you replace TWITTER_ID with your twitter id otherwise it won't work.

For more customisation you can visit official follow button page of twitter.


You may also like

Popular Posts