ShareThis: Free Sharing Buttons and Tools
Where to write the java code to use custom share this button? (2 posts)

  1. Filitech
    Posted 2 years 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 2 years 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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic