Tuesday 6 November 2012

TWITTER: Add FOLLOW BUTTON to your website


Add the Follow Button to your Website

FOLLOW ON TWITTER
FOLLOW ON TWITTER

There are two ways you can add the Follow Button to your webpage.

Using Javascript

The easiest and recommended way to
add a Follow Button to your website is to use Javascript.
Add this code to your web page: 
<a href="https://twitter.com/Yourprofile" class="twitter-follow-button" data-show-count="false" data-lang="en">Follow @twitterapi</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
NOTE: Change "https://twitter.com/Yourprofile" to your profile's URL.

Followers count display

By default, the User's followers count is not displayed with the Follow Button. You can enable the display of this number using the data-show-count attribute:
Eg.
<a href="https://twitter.com/yourprofile" class="twitter-follow-button" data-show-count="false" data-lang="en">Follow @twitterapi</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>

Follow me on Twitter:

No comments:

Post a Comment