Dreevoo.com | Online Learning and Knowledge Sharing
Home | Programs | Web services | Web sites | How to add Tweet button to Wordpress theme
Click to view your profile

How to add Tweet button to Wordpress theme

Twitter provides you with a number of different button integrations. Today, you will learn how to generate an official Tweet button with tweet counts, html code and add it to your Wordpress theme.

  Author: mat | Version: 3.5.2 | 22nd July 2013 |  

First, thing's first, let's generate a Tweet button embed code.

Visit the Twitter Buttons web page.

Choose the Share a link Twitter button (see picture).


To show the number of shares, that is the number of people that clicked your Tweet button, enable the Show count option.

If you own or run a Twitter page related to your Wordpress website, then enter the name of that page into the Via field (see picture).


You can also choose a Large button and the language.


Now we need to fetch the Twitter share button html code so you will be able to embed it onto your Wordpress website.

Click in the field displaying the code and copy it to clipboard.

Ctrl (Cmd for Mac) + C or right-click and copy.


Now got to the home folder of the Wordpress them you are using.

I'm using a Solo theme, so I'm need to go to wp-content/themes/solo folder using a ftp client.

Also recommended for you:


Find the index.php file and open it in a text/html editor like Notepad++ or Dreamweaver.

Also recommended for you:


I want to place the Twitter share button right bellow the post title, that's why I need to paste the code between the post div and content (see picture).

Usually right-click + V or Ctrl (Cmd for Mac) + V to paste the previously copied html code.

Save the index.php file and upload it back to the same folder you downloaded it from.

If you are using an online html editor, than don't forget to save it as well.


And here it is, your very own Tweet share button.

In case of any questions, please do not hesitate and drop me a comment.

Also recommended for you:

  Please login to post a comment
  Click to open user profile  
Joel_5000, 5th Aug 2013, 12:48 AM
Many of my friends will appreciate this tutorial.

Thank you.
online learning made for people