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=”” type=”text/javascript”></script>
<a href=”” class=”twitter-share-button”
data-url=”<?php the_permalink(); ?>
data-text=”<?php the_title(); ?>

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).


Profile - Website


No comments yet.

Write a comment

You must be logged in to write a comment.

« »