How to add the official tweet button in WordPress

Categories: Graphic design, Wordpress - Tags: ,

Adding a “Tweet me” button with a counter in WordPress is quite easy with the button generator offered by Twitter itself.

Then you can use this code.

<script src=”http://platform.twitter.com/widgets.js” type=”text/javascript”></script>
<a href=”http://twitter.com/share” class=”twitter-share-button”
data-url=”<?php the_permalink(); ?>
data-via=”designerdaily
data-text=”<?php the_title(); ?>
data-count=”horizontal”>Tweet</a>

Insert this code in your WordPress loop, in the index.php, single.php or page.php (or any page really but those are the most common).

 

designerdaily
Profile - Website

Comments

No comments yet.

Write a comment

You must be logged in to write a comment.

« »