Manually Add the TweetMeme Submit Button to WordPress
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.
Disclaimer: Make sure you take a backup of your cs_functions.php and single.php before making any changes. You will also want to make sure you have ftp or file access to your site, in case your wordpress crashes, you may need to have ftp or file access (ssh or telnet) to restore the backup file.
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
Related posts:
- WordPress Plugins: TweetMeme 1.7.1 Released TweetMeme 1.7.1 fixes many issues that bloggers were having with Wordpress 2.8.4 where the plug-in was causing errors in the...
- Retweet Your WordPress Posts With Tweetmeme Make it easy to retweet your blog posts with Tweetmeme a most excellent plugin for wordpress which simply displays a...
- Reasons Why Twittley is Better than Tweetmeme for WordPress My fellow technology blogger Tycoon Blogger did an excellent article explaining why Twittley is better than Tweetmeme as a twitter...
- Twitter Offers Own Retweet Button Twitter officially releases a Retweet button and includes using its own t.co URL shrinking but are there ways to collect...
- Adding New StumbleUpon Badges To Blogs You can go to StumbleUpon and select a new variety of submit buttons which show the number of stumbles on...















Hmm, I was going to check out the format of your retweet via TweetMeme, but now I just see the "official" Twitter button.
Did you see my Tweet and how my Twitter ID is missing?
Cheers,
Mitch
- spam
- offensive
- disagree
- off topic
Like