How To Put Cool Facebook And Twitter Share Button On Thesis Theme

Thesis Theme is a simple and powerful theme (framework) where everyone can customize it easily although they are zero knowledge in coding like me. I just made some changes into the coding according to the thesis theme. And its works.

To make a facebook and twitter share button just like above, first you need to insert this code on custom_functions.php. You can change the hooks based on your requirements. In this coding I used thesis_hook_before_post.

/* fb n twit*/
function share_button(){
 if (is_single( )) { ?>

<!-- Facebook Like Button -->

<!-- Facebook Like Button -->

<!-- Twitter Share Button --></pre>
<div class="tweet"><a class="twitter-share-button" href="http://twitter.com/share">Tweet</a>

<script type="text/javascript" src="http://platform.twitter.com/widgets.js">// <![CDATA[
mce:0
// ]]></script></div>
<pre>
<!-- Twitter Share Button -->

<!--?php }}<br /-->add_action('thesis_hook_before_post','share_button');

Then insert this (below) coding in custom.css to give it style. You can change the colour (box) if you want.

 /*Twit n fb*/
.tweet,
.fblike {
    background: #E6F1FA;
    border: 1px solid #ACD6FA;
    border-radius: 4px;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    margin: 10px 0px;
    padding: 13px 12px 14px 10px;
    width: 195px;
    float: right;
}

.fblike {
    background: #ECEEF5;
    border: 1px solid #9DACCE;
    padding: 12px 15px 0px;
    width: 340px;
    float: left;
}

If you have any problems or idea, please feel free to drop a comment below.

24 Replies to “How To Put Cool Facebook And Twitter Share Button On Thesis Theme”

    1. @sidiq90then u can use this coding

      /*Twit n fb*/
      .tweet,
      .fblike {
      margin: 10px 0px;
      padding: 13px 12px 14px 10px;
      width: 195px;
      float: right;
      }

      .fblike {
      padding: 12px 15px 0px;
      width: 340px;
      float: left;
      }

      there is no more background and borders 🙂

    1. @sidiq90hey, thanks for stopping by..
      yes i agree with u, there is so much more to learn..and dont forget to share to ur readers..sharing is caring..
      best of luck with your new blog 🙂

  1. One site has a workaround to get Candy Crush on Kindle Fire HD, which requirers some side-loading
    of a third party app on the tablet. They can play online through
    Facebook or on their mobile phones. By hiring iPhone Game
    Developers India for your project, you can minimize the administration cost required to hire a full-time professional.
    Candy Crush Saga recently posted..Candy Crush SagaMy Profile

  2. , psychiatrist at the University of Illinois School of Medicine,
    and chairman of the National Coalition on Television Violence in order to support their claims.
    So, finally, she went back on her own again, and purchased two pairs of size 38’s. [ii] Also, if we are to grant any weight to the action of the movies, then the characters cannot feel “immune.
    Miriam recently posted..MiriamMy Profile

    1. Onestamente non si capisce nemmeno bene da voi cosa stia succedendo e cosa i giornali non scrivono. Per capirsi, il litigio tra condomini (anche se di partito) dovrebbe interessare gli abitanti di Poggibonsi (dove io abito)? Probabilmente interessa voi, o meglio, interessa una parte probabilmente perchè avrete le elezioni. Di solito tutte queste polemiche si fanno qualche mese prima di ogni tornata elettorale, poi i &#8#f0;puri2icatori&28221; dell’informazione e della vita pubblica non si sentono per 5 anni.Grazie

  3. When it comes to figuring out all the ins and outs of
    a video recreation|specially the types on your telephone|you could spend countless
    numbers of several hours on end trying to beat it this is why Sweet Crush Saga Reside
    Instrument 3.8.five was produced! For you avid
    gamers to take gain of all the specific attribute this resource delivers.
    Not only you will rewards from all these functions but
    you will also support oneself beat each and each and every stage the
    annoyed you for a although. No far more waiting several hours to get daily life or have a limited volume of boosters.

    Now everything you want has been included in this resource and appropriate with Fb|Apple Gadgets (Ipod|Ipad|Iphones) and Android telephones also.
    download candy crush saga hack recently posted..download candy crush saga hackMy Profile

  4. Great post. I was checking continuously this blog and I
    am impressed! Very useful information specifically the last part :
    ) I care for such info much. I was seeking this certain information for a very long time.
    Thank you and good luck.
    moda infanto juvenil recently posted..moda infanto juvenilMy Profile

  5. Not only you can instll it to your devices and have fun, but alsoo you can invite
    youjr friends too download it annd compete with them.
    Trojan viruses can enter a system disguised in a song file or other media
    file, as wel ass part of a program someone wants. In order
    to get started with this app, enter the name of your source station and destinations station.
    smashy road Hack recently posted..smashy road HackMy Profile

  6. Those caps are a wonderful idea for the aging veterans of WWII.
    ‘The Headmaster’s Wager’ explores many subjects, including mixed marriage and how children resulting from these unions were regarded.
    Black lava rocks line the seashore and crystal clear waters wash on shore to
    offer relief from the warm Mediterranean sun.
    taste of phuquoc recently posted..taste of phuquocMy Profile

  7. Hello I am so delighted I found your web site, I really found yoou by
    accident, while I was browsing on Bing for something else, Anyways I
    am here now and would just like to say many thanks for a remarkable poswt and a aall rouund thrilling
    blog (I also love the theme/design), I don’t have tkme to go
    through it all at the minute but I have saved it and also included your RSS feeds, so when I have time I will be back tto read much more,
    Please do keep up the excellent work.

Comments are closed.