WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Filitech
    Member
    Posted 10 months ago #

    Hi,

    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

    http://wordpress.org/plugins/share-this/

  2. sharethissupport
    Member
    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 -
    http://support.sharethis.com/customer/portal/questions/943449-display-buttons-on-some-pages-but-not-all-pages#sthash.7vnoNk44.dpbs

    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 -

    .st_sharethis_custom
    {
    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 -
    http://support.sharethis.com/customer/portal/articles/446558-custom-buttons

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

Reply

You must log in to post.

About this Plugin

About this Topic