In this article I am trying to use twitter follow plugin in a HTML page.

The Follow Button is allows users to easily follow a Twitter account from any webpage. The Follow Button uses the same implementation model as the Tweet Button, and its integration is just as simple.

Code: -
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">

<html xmlns="">
    <title>Twitter Follow Button</title>
    <script type="text/javascript">
        !function (d, s, id) {
            var js, fjs = d.getElementsByTagName(s)[0];
            if (!d.getElementById(id)) {
                js = d.createElement(s);
       = id; js.src = "//";
                fjs.parentNode.insertBefore(js, fjs);
    (document, "script", "twitter-wjs");
    <a href="" class="twitter-follow-button" data-show-count="true" data-lang="en">Follow @mindstick</a>
data-show-count: -

When it value is false then User's followers count is not displayed with the Follow Button, and if you can enable the display of this number using the data-show-count attribute

data-lang: -

Here we give the language of follow button; we use 'en' for English and if you want to use another language then follow below link.


Output: -

Implement twitter follow plugin in your website



  Modified On Nov-30-2017 12:50:35 AM

Leave Comment