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
Related posts:
- Wordpress Plugins: TweetMeme 1.7.1 Released TweetMeme 1.7.1 fixes many issues that bloggers were having with...
- Retweet Your Wordpress Posts With Tweetmeme Make it easy to retweet your blog posts with Tweetmeme...
- Reasons Why Twittley is Better than Tweetmeme for Wordpress My fellow technology blogger Tycoon Blogger did an excellent...
- Adding Google Analytics to your Wordpress Blog I have compiled a list of tips and helpful hints...
- 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.
Tags: Add TweetMeme button to wordpress, adding tweetmeme, blogging tips, change tweetmeme location, customize tweetmeme button, how to add tweetmeme, manually add tweetmeme button to wordpress, tweetmeme button, tweetmeme for wordpress, wordpress tips, wordpress tweetmeme tips







November 11th, 2009 at 7:40 am
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
[Reply]
November 11th, 2009 at 8:53 am
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
[Reply]
November 12th, 2009 at 5:38 pm
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!
[Reply]
November 12th, 2009 at 7:19 pm
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]
November 13th, 2009 at 12:09 pm
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?
[Reply]
January 24th, 2010 at 9:20 am
Nice share, got it working!
read Shahab khan´s article about Twitter Location Based Trending Topics
[Reply]