Ready to get started?Download WordPress


ShareThis: Share Buttons and Social Analytics
Where to write the java code to use custom share this button? (2 posts)

  1. Filitech
    Posted 10 months ago #


    I have read your support forums (http://support.sharethis.com/customer/portal/articles/446558-custom-buttons)

    but it is not clear for me which code I have to define on which place. Can I directly copy the java code and write it in my child themes functions.php? I tried to do that, with my own image and my own publisher key, but then I couldn't access my website anymore, instead I got an error and had to re-upload the corrections functions.php via FTP.

    Could you please elaborate on where I have to write the java code and if there are any other steps necessary to take?

    Thank you


  2. sharethissupport
    Posted 9 months ago #

    Hello User,

    Please note that to add the custom buttons to your WordPress site, first you need to add the ShareThis code/buttons manually to your site.
    You can know more about it from here -

    Then you can edit the ShareThis code to add the Custom Buttons of your choice.
    Please note that while adding the custom button, you need to add the below property in your website's CSS property -

    background: url("http://path/to/image/file") no-repeat scroll left top transparent;
    padding:0px 16px 0 0;

    And you can find the complete information here -

    Please feel free to contact us if you have any queries.


You must log in to post.

About this Plugin

About this Topic