Utilizing the social networking media is one way of increasing traffic to your site. You need to write interesting articles, of course, to make people follow your site. But once you have captured their interest, then it is quite easy to let them follow your blogs by adding the twitter’s official button on your WordPress site.
Twitter has already released their official tweet button to allow you to share links of your site to twitter. It is small, smooth and easy to install and use. More and more people are using this not only because it has javascript codes that are totally compatible with WordPress, it also offers the users additional customization and gives them an option to suggest account following.
Adding this button to your page is quite easy. First thing to do is go to their setup page and choose how you want the button to appear on your site. There are three available styles you can choose from: simple, horizontal and vertical.
In order to set the style you want, all you need to do is change the “data-count” feature to none, horizontal or vertical. Look at the example code below:
<a href=”http://twitter.com/share” data-count=”horizontal” data-via=”socialblogr”>Tweet.
The code may be set up in a loop.php, index.php, single.php, page.php, archive.php or category.php. Just make sure to place the code inside the post loop.
Once you have your preference selected, you can add the button to your account easily. If you are utilizing the WordPress.com, all you have to do is go to the admin page and enable the button. For index or single page, you need to copy the code below and paste it on the page you want the twitter button to appear.
<a href=”http://twitter.com/share” data-text=”<?php the_title(); ?>” data-url=”<?php the_permalink() ?>” data-count=”vertical” data-via=”socialblogr“>Tweet</a><script type=”text/javascript” src=”http://platform.twitter.com/widgets.js”></script>
Most web designers would recommend that users will make use of the method called data-attribute of anchor tag since it would keep the codes short and clean. The query method might be more convenient but it would create long anchor tags and long URLs are quite complex and hard to maintain. The best place to place your twitter button is at the end of the post in a single.php. Try to place it just above the area where your visitors can place comments.
Adding a twitter button to our blog can do wonders to the amount of traffic your blog will receive. You can’t deny the fact that more and more people are using social networks to increase their web presence. So tap the users of these social networking media to boost the number of organic visitors to your site and thereby generate the needed sales and revenues you want.






