How to add Digg and Tweetmeme Button In Thesis Wordpress Theme

by Harsh Agrawal on August 19, 2009

in Thesis Customization

I have already covered few topics on customizing Thesis wordpress theme, If you have missed them, you can have a look at :

Looking at my referral log, I’m glad that many people bought thesis and I’m sure they must be seeing the positive result. To make them more comfortable with Thesis , as I said earlier I will be coming up with more topic on Thesis theme customization.

Here is a quick code, which you can add into you custom_functions.php to add Digg and Tweetmeme button, beside your post title.   Copy the code and paste it in your custom_functions.php file

function Digg_button() {
if (is_single()) {
 echo '<div style="float:right; padding-left: 5px;"><script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js">
</script><script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script></div>';
 }
}
add_action('thesis_hook_before_headline', 'Digg_button');

This simple code will add a Digg and tweetmeme button in your post. You can also edit your custom.css according to your previous customization to add more styling to your Tweetmeme and Digg button. A Working example of this code can be seen at Shoutmeloud.

In case if you don’t wish to add Tweetmeme with code, you can also grab Tweetmeme wordpress plugin.

If you still looking for best SEO wordpress theme , I will suggest Grab Thesis wordpress theme.

Related reading :

Related posts:

  1. How to add Twitter ID into Thesis wordpress Theme Comment Form
  2. How to Add Clickable header into Thesis Wordpress Theme
  3. Thesis Open Hook Wordpress Plugin : Easily customize Thesis Wordpress Theme
  4. Thesis Wordpress theme : SEO optimized wordpress theme
  5. Download Thesis 1.6 Wordpress Theme
  6. Customizing Thesis Wordpress Theme 404 Error Pages
  7. Adding Adsense Into Thesis Wordpress Theme
  8. Tweetmeme Twitter Button to get more Tweet.


{ 13 comments… read them below or add one }

1 Surender Sharma August 19, 2009 at 22:53

Thesis is the best theme and easy to customization.
Yes this is the best way to add Digg and TweetMeme button.
.-= Surender Sharma ´s last blog ..Publish Your Blog Posts on Facebook Automatically =-.

Reply

2 Stefan August 20, 2009 at 02:30

I tried to use Tweetmeme but didn’t really like it since somehow it messed up my posts when trying to add images. Therefore i decided to add all of the buttons in the end with a “sharing is caring”-navigation.
.-= Stefan ´s last blog ..How to Install Wordpress on Hostgator =-.

Reply

3 Amal Roy August 20, 2009 at 06:59

This is really helpful to increase the retweets and diggs.
.-= Amal Roy ´s last blog ..How To Delete NTFS Partition Safely & Easily =-.

Reply

4 Akmal Wardak August 20, 2009 at 08:47

any idea on how to add the digg button on top right side of the post content, unlike this code which adds the buttons besides the title.
.-= Akmal Wardak ´s last blog ..MobilePress Plugin “ Creates a Mobile Friendly Version of Your Blog =-.

Reply

5 Akmal Wardak August 20, 2009 at 08:57

I think I found the solution to the question I asked above. you just use the thesis_hooks_before_post hook instead of thesis_hook_before_headline.
.-= Akmal Wardak ´s last blog ..MobilePress Plugin “ Creates a Mobile Friendly Version of Your Blog =-.

Reply

6 George Serradinho August 20, 2009 at 11:29

Thanks for this. I originally had my Tweetmeme button within the post before the first letter.

This spaces it a lot more and makes it look a bit more professional. I have already updated my site and loved how it looks now :)

I don’t have the Digg button on my site, don’t know why not.
.-= George Serradinho ´s last blog ..Newest WordPress Plugins 20/08 =-.

Reply

7 Matt nelson September 23, 2009 at 17:25

Hey Harash – Great article.

I’m curious if you’ve written a tutorial on how to get the sm icons floating at the left hand side of this page?

Reply

8 techprism October 5, 2009 at 13:59

I think Thesis 1.5 is Nicer than Thesis 1.6

Reply

9 Rishi October 12, 2009 at 08:16

Hello, Great Blog
I want to ask one thing , I am also using Thesis theme 1.5.1 and I want to make my post links have border after hovering.So,how can i do this??

Thanks,waiting for your response.

Reply

10 Rishi October 22, 2009 at 16:09

Best Theme I have seen.
But I want to create a Bottom Sidebars as you have.How can I create that???

Reply

11 mktanny October 24, 2009 at 12:44

Nice one Harsh m getting to know more and more about thesis.n yeah is thesis 1.6 up for purchase?

Reply

12 Boni November 18, 2009 at 02:20

Hi, I want to ask you, how to change the tweetmeme to be my blog name, because when i hit the tweet it belongings to tweetmeme..
thanks before..

Reply

13 aks December 10, 2009 at 02:56

nice post and useful too.

Reply

Leave a Comment

Previous post:

Next post: