Become Wordpress Professional - Your Ultimate Wordpress Guide

Thursday, 18 July 2013

How to Add Tweet Button and Twitter Fan box in WordPress

Twitter is one of the largest social networking site used around the globe since 2006 and its growing rate is not going to end.  In 2010 twitter announced its Follow button which is especially designed for webmasters to share their contents in their twitter profile and spread their ideas via twitter platform. Twitter got a maximum page rank even a Facebook team is still trying to access this goal. Today i gonna tell you about how to add a Tweet button and Twitter Fan box in your WordPress blogs to optimize your WordPress site towards twitter.

How to Add " Tweet this " button

Tweet button is one of the most used button for sharing contents over the twitter. If you want to create your own twitter button then copy the below code and paste in your single.php file in the post loop or you can also post it anywhere in your WordPress blog.

<script src="" type="text/javascript"></script>
   <a href="" class="twitter-share-button"
      data-url="<?php the_permalink(); ?>"
      data-text="<?php the_title(); ?>"

Description of Above code

data-url : This snippet will fetches the URL you want to share. If you use the above code then it will automatically share the current use page.

data - via : change "WRITE YOUR TWITTER USERNAME" to your own twitter username so your tweet gonna considered the original tweeter.

data-text : It will automatically fetches your current post title.

data-count : You can customize your button in three different styles ( vertical - Horizontal - none ).

How to add a Twitter Fan - Like box in WordPress

If you are a professional blogger then you can never deny the use of Facebook like box because it is a marvelous social media plugin to increase your Facebook fans and its bring a huge impact to increase your post likes. Like this WordPress plugin developers bring a fully functional Twitter Fans box . You just need to install the plugin in your WordPress blog >> then go to your widget area and placed the Twitter fans box tab in your sidebar. 

Submit your twitter username and this plugin start working. It will display your twitter profile picture with officially twitter Follow button. 


Post a Comment

Please Avoid Spamming. Comments will be moderated before they are published.