Beginner's Guide for WordPress - Start your WordPress Blog in minutes.
Choosing the Best
WordPress Hosting
How to Easily
Install WordPress
WordPress Plugins
View all Guides

How to Add a Retweet Button on Your Blog

Last updated on by
Special WordPress Hosting offer for WPBeginner Readers
How to Add a Retweet Button on Your Blog

Twitter has seen exponential growth in the past year which is the reason why more and more bloggers are now sharing their stories on twitter. If you haven’t seen one of the cool Retweet buttons on some of most famous blogs, then you are missing out.

In this article, we will show you how to add a Retweet Button in all of your posts, so your audience can Tweet your stories with one click.

There are two ways to add this button in your site. First is through the WordPress Plugin called Tweetmeme

Upload the plugin into /wp-content/plugins/ directory.

Activate it, and then visit the settings page.

You can change the RT @tweetmeme which is default to RT @yourusername. In our case it would be RT @wpbeginner.

This plugin also allows you to choose the location of the button placement. Top Right Corner, Top Left Corner, and so on.

The second way is to do it by placing the codes in your templates file of your choosing at the location that you desire.

For the Large Button:

<script type="text/javascript">
tweetmeme_source = 'wpbeginner';
<script type="text/javascript" src=""> </script>

For the Compact Button:

<script type='text/javascript'>
tweetmeme_style = "compact";
tweetmeme_source = 'wpbeginner';

Remember to change wpbeginner to your twitter name. Now you have a Retweet button on your posts. You are on your way to getting more exposure. Follow us on Twitter.

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi. Page maintained by Syed Balkhi.

WPBeginner's Video Icon
Our HD-Quality tutorial videos for WordPress Beginners will teach you how to use WordPress to create and manage your own website in about an hour. Get started now »


  1. Radu says:

    I meant: Forgot to add the Search for button script for the Compact button one.

  2. Radu says:

    Hey guys,
    I think you forgot to add for the Compact Button script.

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.