How to: Customize Sticky Share Button URLs

By April 5, 2017

If you’re interested in setting your Sticky Share Buttons to one specific URL, you’ve come to the right place! It is super simple, you would just need to follow these two steps below:

Step 1: Add/Find the sticky share button code. It will most likely be towards the end of </body> and looks like so:

<script type="text/javascript" src="//platform-api.sharethis.com/js/sharethis.js#property=XXXXXXXXXXXX&product=sticky-share-buttons"></script>


Step 2:
Add the following code immediately before the closing of </body> tag (our script will deal with moving the div where it needs to go):

<div class='sharethis-sticky-share-buttons' data-url='[CUSTOM URL HERE]'></div>

Once you have these two steps in place, the sticky share bar should append to your custom URL!

Properties within <div> tags for Sticky Share Buttons:

Name Definition
data-url Specifies URL that you would like shared
data-short-url Use if you would like to use shortening service.