How To Properly Add Twitter Follow Button To Your Website

Add Twitter follow button

Twitter is one of the leading social media networks and people are showing their presence more. To get more followers, you can add Twitter follow button to your website.

Do you know how to do that? There are different types of Twitter buttons and you can generate the code from Twitter only.

If you want to add tweets to your website then you can do that. But here we are talking about the button. In this tutorial, you will learn how to add Twitter follow button to your website.

Add Twitter Follow Button By Using Official Twitter Code

As you all know, nowadays, you can add a LinkedIn button to your website. The same goes for the Twitter.

First of all, you must have a Twitter account. Login to your account and visit the Twitter follow button page.

You can directly reach out to the button creation page from here.

Step 1:- Enter the URL of your profile or just the Twitter handler.

Step 2:- You will notice two options to embed the live twitter of your timeline or to generate the follow button. Click on the follow button option.

Step 3:- A pop-up will appear from which you have to choose the button type. Choose follow button and a code will be generated below.

<a href=”″ class=”twitter-follow-button” data-show-count=”false”>Follow @ravichahar27</a><script async src=”//” charset=”utf-8″></script>

The output would be:-

Step 4:- Just copy and paste the code to your website. You can use this code anywhere.

How To Customize Twitter Follow Button

You will notice an option to click on setting the customization options. Click and there will be a few options including the size of the Twitter button and to display or hide the followers’ count.

Choose your options and update the code.

<a href=”″ class=”twitter-follow-button” data-size=”large” data-show-count=”false”>Follow @ravichahar27</a><script async src=”//” charset=”utf-8″></script>

The result would be like this.

You can even hide the username showing in the button.

How To Customize it to Make it Look Better

If you want to customize it manually then there are a few things you can do. You can show the number of followers, button text color, button color etc.

Let me show you the tags to use inside the code.

  • data-show-count(true or false)
  • data-lang(es, en)
  • data-align()
  • data-size()
 <a href=”″ class=”twitter-follow-button” data-size=”large” data-show-count=”true” data-lang=”es” >Follow @ravichahar27</a><script async src=”//” charset=”utf-8″></script>

NOTE:- In all the code shown above, the URL is of my profile. To generate the button for your profile, replace it with the URL of your profile.

Just with the proper tags, you can customize your official Twitter follow button.

I Hope Now You Can Add Twitter Follow Button To Your Website.

Most of the social networks provide the code to add the button to your website. Just like you have seen above, copy and paste the code anywhere you want.

If you want to show the button in the sidebar, just paste the code in the widgets or you can use any plugin to display it in a specific place.

by Ravi Chahar

A WordPress Professional and the LinkedIn Influencer. A coder by passion and a blogger by choice. WordPress theme development is his forte. He is your WordPress guy who will teach you how to solve WordPress errors, WordPress security issues, design issues and what not.

Get Free Updates Into Your Inbox

Learn Everything Just Like I Did



  1. Hi Ravi,

    You make adding a Twitter button look so easy! We all need to be found everywhere we live–nobody lives in just one place anymore on the web.

    Thank you for this article.


    1. Hey Carol,

      Twitter provides the code for your profile, you just have to put it to your website. I am sure, it won’t be hard for anyone.
      Thanks for stopping by.
      Enjoy your day.

  2. Hey Ravi!

    This is awesome! Thanks for showing us how to do this! I love how you showed us we can use different languages. One of my client’s target audience are mostly Spanish-speaking so this is going to be helpful!

    I’m hanging on to this for sure and you know I’m passing it on!

    Have a great week. 🙂


Leave a Reply

Your email address will not be published. Required fields are marked *