• X

    How to add Digg and Tweetmeme Button In Thesis WordPress Theme

    By in Thesis Customization

    Bluehost hosting

    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 :

    Get Free Blogging updates in your Email

    Find more Topics based on Keywords

    Article by

    Harsh has written 1264 articles.

    If you like This post, you can follow ShoutMeLoud on Twitter. Subscribe to ShoutMeLoud feed via RSS or EMAIL to receive instant updates.

    { 17 comments… read them below or add one }

    Surender Sharma

    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

    Stefan

    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

    Akmal Wardak

    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

    Akmal Wardak

    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

    George Serradinho

    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

    Matt nelson

    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

    techprism

    I think Thesis 1.5 is Nicer than Thesis 1.6

    Reply

    Rishi

    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

    Rishi

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

    Reply

    mktanny

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

    Reply

    Boni

    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

    aks

    nice post and useful too.

    Reply

    Dr. Lawrence Kindo

    An excellent article describing the process of creating the said buttons.

    Reply

    Harsh Agrawal

    Thanks Lawrence for your comment and glad you like this post.

    Reply

    Brett Widmann

    This is a great tutorial! Thanks for sharing.

    Reply

    RealTimeTricks

    Hello Harsh,

    If you check my blog you can see these buttons are coming in one line. Can you please tell me how i can make them come in horizontal line, like you have in this post?

    -Irfan

    Reply

    Bhaveek

    harsh, how can I insert facebook share and twitter button on pages. I have already added it to post but has no idea regarding adding it to wordpress pages.

    Reply

    Leave a Comment

    Previous post:

    Next post:

    `