Get TweetMeme Button on Thesis WordPress Theme

by Harshad on August 2, 2009

Twitter logo TweetMeme is a popular retweeting service on Twitter. Many top bloggers including ProBlogger Darren Rowse and CopyBlogger Brian Clark are using this service on their blogs.

I’ve also tried TweetMeme button on this blog with the help of TweetMeme WordPress plugin. The plugin is simply great, as you don’t have to use any coding skills to display the button on your blog.

TweetMeme Button on simple WordPress Theme

For bloggers who prefer coding instead of plugins, they can use following TweetMeme script on their blogs.

<script type=”text/javascript”>

tweetmeme_url = ‘http://yoururl.com’;

</script>

<script type=”text/javascript” src=”http://tweetmeme.com/i/scripts/button.js”></script>

Some plugins might slow down your blog’s performance, and hence it is always recommended to use simple codes on blogs.

TweetMeme Button on Thesis WordPress Theme

Thesis theme user can also apply this button on their blogs, but it needs technical knowledge. Well, you don’t have to worry about it; I’ll guide you to do it on your Thesis blog.

1. Open custom_functions.php file from following path.

/wp-content/themes/thesis/custom/custom_functions.php

2. Copy this code and paste it in above file.

?>

<div style=”float:right; margin-top:-17px;margin-right:-10px;”>

<script type=”text/javascript”>

tweetmeme_url = ‘<?php the_permalink() ?>’;

tweetmeme_source = ‘TechExclusive’;

tweetmeme_service = ‘bit.ly’;

</script>

<script type=”text/javascript”
src=”http://tweetmeme.com/i/scripts/button.js”></script> </div>

<?

}

add_action(‘thesis_hook_byline_item’,'custom_byline’);

3. Save the file. Now, the button will appear beside your blog post title as shown in image. [Replace tweetmeme_source to your own Twitter handle.]

TweetMeme Button on Tech Exclusive

If you don’t want it to appear beside blog post title then use TweetMeme WordPress plugin, which gives facility to put the button in blog content.

Related posts:

  1. How to get Twitter’s Official Tweet Button for Thesis WordPress Theme?
  2. How to add Facebook Share and Tweetmeme Buttons to Thesis Byline?
  3. How to display Ads in Single Post of Thesis Theme?
  4. How to Remove Comments from Homepage of Thesis Theme?
  5. How to Add Twitter Field in the Comment Section of Thesis Theme?

{ 3 comments }

BOni November 17, 2009 at 11:26 pm

The code for Thesis not working anyway… it really make my bloG error

Harshad November 17, 2009 at 11:32 pm

I’m using same code on this blog. It’s working for me.

BOni November 17, 2009 at 11:56 pm

so what is my problem…
I use the tweetmeme now, but i can’t make it beside the title. can you give me some advice.. thank you.

Comments on this entry are closed.

blog comments powered by Disqus

Previous post:

Next post: