How to add Tweet meme Button inside the Teaser and postbox of Thesis Theme

We know social media networks are important for blogging especially twitter. This tutorial explains about adding tweet meme button at various parts of your site. With help of corresponding thesis hooks, we can add tweet meme button at any part of thesis theme. Also in this tutorial has only the custom_functions.php code the css code available inside the custom functions code. If you want add style to your tweet meme button you can add in side the custom_functions.php file.

This video Explains about…

How to add tweet meme button left side of the teaser in homepage?.

How to add tweet meme button right side of the teaser in homepage?.

You can change or add style inside the custom_functions.php file.

How to add tweet meme button in side the post box?

How to remove tweet meme button in pages and only show in posts?

It gives an idea to add any social media button inside the teaser box and post box.


Code for tweet meme button inside the teaser box left or right, Copy the below code and paste it into custom_functions.php file. for right side change the style float:right and margin-left:10px; and tweet meme source as your twitter user name.


function tweet_button_left() {
<div id='twittley_button' style='float:left;margin-right:10px;'>
<script type="text/javascript">
tweetmeme_source = 'fourblogger';
tweetmeme_url = '<?php echo get_permalink($postid); ?>';
<script type="text/javascript" src=""></script>
<?php }

add_action('thesis_hook_before_teaser', 'tweet_button_left');

Code for tweet meme button inside the post box left or right and not shown in pages, Copy the below code and paste it into custom_functions.php file.


function tweet_button_left1() {
<div id='twittley_button1' style='float:right;margin-left:10px;'>
<script type="text/javascript">
tweetmeme_source = 'fourblogger';
tweetmeme_url = '<?php echo get_permalink($postid); ?>';
<script type="text/javascript"  src=""></script>
<?php } }

add_action('thesis_hook_before_post', 'tweet_button_left1');

Share your experience in comments section. For more checkout our all Thesis theme tutorials..

{ 29 comments… add one }

Leave a Comment

  • aviationMY February 15, 2010, 3:01 PM

    Hi, its me once again n’ another again n’ again

    Suresh, i noticed your header and follow us widget has some additional icon today?(Google buzz)…hehe

    its very nice your header got the GB that..mirror effect..

    anyway, are you having problem with your feed burner? in this month i didn’t get any email updates from you guys.. usually any updates it will sent into my mailbox.

    i check on my spam also didn’t receive that!

    but now i need to look it for my self..

    anyway..when at home page..i saw your post has the :
    ( 12 Comments) ( Add a Comment) ( Read more…)

    how to do that?

    its preety nice when i hover the button change color!

    Thank You.

    • Pascal February 15, 2010, 9:41 PM

      Hi Aviation,

      Glad you loved the Google buzz icon.

      We have stopped feedburner email subscription option as we moved on to aweber. Hope you received the 11 css tricks, How to use hooks in your inbox. we are sending some selective posts alone through aweber. So that readers inbox won’t get flooded with all our posts. Anyway, if you want to receive our all posts through email, we will try to do something for you specially.


      • aviationMY February 15, 2010, 9:57 PM

        oh i see..

        no wonder i got the aweber email…im pretty detail with your blog though..i dont want to miss any single updates here because you updating your blog frequently…

        and the best part its all about blogging and word press..

        BTW, im waiting for a tutorial on how to manage SEO DETAIL AND ADDITIONAL STYLES IN THESIS THEME..

        i didn’t found any tutorial on how to and what to put in this filed..

        like meta keywords and title to separate them? by using a comma, vertical line or just a space.

        i didn’t even know what is the function of custom field and track-backs..

        hope maybe you can make this one as a tutorial..

        i only put title and article than publish..maybe this SEO filed got something to do with it..

        anyway..Thank you for all the guys presented it in clearly and concise way..

        keep up the good work

        • Suresh February 16, 2010, 9:15 AM

          hai aviationMy,

          Thanks..we will try to cover the topics as you mentioned in the above comment..

  • Tony M February 15, 2010, 7:25 PM

    I’ve been struggling to show the Tweetmeme icon on both homepage and post page and reflect the same count, perhaps a future post?

    I had it installed on both but the one on the homepage would only tweet the home page, not the post it was next to. I gave up and just put it onto my post page.

    • Pascal February 15, 2010, 9:59 PM

      Do you use any plugin to show tweetmeme icon? May be your plugin settings did like that. Remove your plugin, and apply our codes. It might be working good.

      • Tony M February 16, 2010, 12:03 AM

        No I input it into the custom_functions of Thesis. Same with the Facebook share icon. I’ll compare my code to yours and see whats different. Thanks.

        • Suresh February 16, 2010, 9:20 AM

          compare the code that you have and with our codes will surely get it..

  • Vivek March 5, 2010, 3:57 AM

    Thanks for all the thesis tutorials. Can you write the tutorial on facebook share button like you write about this tweetmeme share button.

    • Suresh March 8, 2010, 6:55 PM

      hai vivek,

      In this post just replace the tweet meme button code with facebook share code it is working fine..

  • Vivek March 12, 2010, 4:49 AM

    Can you guide me how i can add fbshare button code. need your help

    • Suresh March 12, 2010, 3:42 PM


      Just replace the code for faceboook share button instead of twitter script in the above post.. you can get facebook share button in your facebook page..

  • Keith Carey March 15, 2010, 3:38 PM

    Hi- Thank you for a great site and wonderful materials. I have a problem, I was trying to follow your tut on adding a twitter icon in the teaser box and then coping it again to the post box. when I did that, my wp site shut down and I cant get in through the front door now. I am in my Godaddy manager site and Im trying to find out what to restore…but dont have any idea?? Can you help? Im stuck and my site is gone. I appreciate any help you can offer. Thank you,
    Keith Carey
    skype – careytv

    • Suresh March 15, 2010, 4:00 PM

      hai keith,

      check the function names of the code (for teaser and postbox) that you have added in custom_functions.php file..
      If both function names are same this may happen.. so use different function name for teaser and post box..

      if you have further problem contact us…

    • aviationMY March 15, 2010, 4:10 PM

      Hi, its often happened to me.

      to resolve that…simply replace/edit your custom function via http://ftp...

      my suggestion: use any ftp software…like FileZilla…and find the custom_function.php, drag it into your and delete the last part code that make your site error/blank..

      than re-upload it back by dragging into the ftp file..ftp software behave like Cpanel…
      or log in via Cpanel…and download the custom_function.php file..

      hope it works..

      • Suresh March 15, 2010, 4:15 PM

        hai aviationmy,

        No need to download custom_function.php file in your desktop… edit the custom function file there itself.. it is working fine..

  • aviationMY March 15, 2010, 4:20 PM

    Ok..that is a good tip from you Suresh..thank you..its saving our time

    but i am using Notepad ++ and the moment i right click>view/edit it open my php file in Firefox…

    now, im trying to learn to use fire bug from your video tutorial…

  • Goendul.Net May 19, 2010, 5:30 PM

    thank you bro, Nice work. I’ve already adding this button into my now.

  • Suresh June 10, 2010, 10:43 PM

    hai saif,
    Check the plugin options.. Is there any way to add fb-share in teaser or inside of particular widget? if so then create widget inside teaser and add fb-share button..

    • Suresh June 10, 2010, 11:25 PM

      hai saif,

      Is any options to add fb-share in homepage?..

  • hyder July 25, 2010, 1:49 PM

    Hi pascal,
    Can you share the code of facebook share button for Fb button in teaser box!

    • Pascal July 25, 2010, 9:13 PM

      i will do any single thesis theme customization issue for $5. if it is ok for you, i will send my paypal id after paying money, give your site details i will do it.

      • hyder July 25, 2010, 10:59 PM

        Oops! seems u took Fiverr seriously, i would love to pay for this but i don’t have amount in paypal :-(

        I will really appreciate if i can get this free, Thanks in advance!

  • hyder July 28, 2010, 2:06 PM

    its been 3days and im still waiting pascal :(

  • Ron August 4, 2010, 5:53 PM

    Nice video. I have a question. I want to insert only the compact button before teaser. how can i do that?


    • Pascal August 9, 2010, 6:51 PM

      Hi ron,

      Our thesis team totally move to our membershipsite fourbloggerclub. so nowadays we are solve any single thesis issue for $5 only. it is ok for you. send your requirements.
      contact us via contact form

      • Ron August 10, 2010, 2:07 PM


        But I found how to insert that compact button inside teasers and I already did it. Check my site.

  • Susan August 13, 2010, 5:49 AM

    Adding tweet button to your blog has now become easier as Twitter has officially released tweet button and you can add that to your blog with just two lines of code. Check out the link about how to do it.

    Twitter official Tweet button is live now – makes adding tweet button easier

  • Lok Bahadur Thapa December 20, 2011, 3:00 PM

    thanks for helpful idea :)