Blog

August 2, 2009
 

Get TweetMeme Button on Thesis WordPress Theme

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.