Manually Add the TweetMeme Submit Button to Wordpress

Posted by: dragonblogger  //  Category: blogging

I enjoy using TweetMeme on my blogs, it is highly recognizable but the plug-in itself allows little control over placement on where you want the submit button. You can choose top, bottom, left and right, or update the location on specific posts, but I wanted to be able to set it inside a table and make it sit next to my other social submit buttons.

I found this information over on the TweetMeme forums and thought it would be nice to share it with my blog readers.allows me to deactivate the TweetMeme plugin and use this simple code instead to place the TweetMeme plug-in exactly where I want on my wordpress posts.

First, open your functions.php file and paste this code directly above the closing ?> tag at the end of the file:

function tweetmeme(){
?>
<div style=”float: right; margin: 5px 0 15px 15px;”>
<script type=”text/javascript”>
tweetmeme_url = ‘<?php the_permalink(); ?>’;
</script>
<script type=”text/javascript” src=”http://tweetmeme.com/i/scripts/button.js”></script>
</div>
<?php
}

Next, paste this simple tag into your single.php or page.php template file, at the place you wish the button to appear:

<?php tweetmeme(); ?>

This information was posted by Shawn Hesketh from Wordpress 101, who left this comment on the Tweetmeme forums.

-Dragon Blogger

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • StumbleUpon
  • Technorati
  • MisterWong

Related posts:

  1. Wordpress Plugins: TweetMeme 1.7.1 Released TweetMeme 1.7.1 fixes many issues that bloggers were having with...
  2. Retweet Your Wordpress Posts With Tweetmeme Make it easy to retweet your blog posts with Tweetmeme...
  3. Reasons Why Twittley is Better than Tweetmeme for Wordpress My fellow technology blogger Tycoon Blogger did an excellent...
  4. Adding Google Analytics to your Wordpress Blog I have compiled a list of tips and helpful hints...
  5. Social Bookmarking Reloaded – Social Submitting Wordpress Plug-in I always think giving the ability for your readers to...

Related posts brought to you by Yet Another Related Posts Plugin.


Written by dragonblogger (880 Articles Published)

Working in the IT Industry for over 10 years and specializing in web based technologies. Dragon Blogger has unique insights and opinions to how the internet and web technology works. An Avid movie fan, video game fan and fan of trying anything and everything new.

Follow dragonblogger on Twitter @dragonblogger

If you enjoyed this post, Subscribe via Email:

Tags: , , , , , , , , , ,

6 Responses to “Manually Add the TweetMeme Submit Button to Wordpress”

  1. Heather Kephart Says:

    Cool, Justin! Thanks for sharing the information. I use Thesis now and it apparently doesn’t have a single.php, which has become the bane of my existence. I would like to do a nice table like that someday, too. Eventually!
    Heather Kephart´s last blog ..Comment on Guest Post: Cindy the Facebook Bat Lady by Dawn My ComLuv Profile

    [Reply]

  2. Extreme John Says:

    Great tutorial I never even thought to write a post explaining how to do this for people, I insert mine manually as well. Offers much more control.
    Extreme John´s last blog ..5 Reasons I Suck at Entrecard My ComLuv Profile

    [Reply]

  3. Michael Aulia Says:

    I just wish there is a plug-in that displays all the widgets. I know there are heaps of them already, but none displays them with the counts, etc
    Michael Aulia´s last blog ..Win LG Phones! My ComLuv Profile

    [Reply]

    dragonblogger Reply:

    I know, I dislike having to do all of these manually, I wish a nice little box, I like the little social feed box on huffingtonpost.com wish I could design something similar.

    [Reply]

  4. Dennis Edell Says:

    Sweet! As I just mentioned on John’s meme button post, this is a keeper. I haven’t used the plugin yet and now I can install it manually! Maybe…lol
    Dennis Edell´s last blog ..He/She Has Unsubscribed – Should You Ask Why? My ComLuv Profile

    [Reply]

  5. Shahab khan Says:

    Nice share, got it working!
    read Shahab khan´s article about Twitter Location Based Trending Topics My ComLuv Profile

    [Reply]

Leave a Reply

CommentLuv Enabled

This site uses KeywordLuv. Enter YourName@YourKeywords in the Name field to take advantage.

Get Adobe Flash playerPlugin by wpburn.com wordpress themes
Theme Provided By: Wordpress Theme - Car Loan Refinancing