Open Widget In New Window

 
 

Overview

Specify whether you want the widget window to open in a new window, or on the current page.

Attributes

Name Definition Default Requirement
st_title Adds a custom title for the share document.title Optional
st_url Adds a custom URL for the share document.location.href Optional
displayText Change the text that appears with the button ShareThis Optional

Options

Name Definition Default Requirement
publisher Your unique ShareThis publisher key none Required
popup Opens widget in a new window false Optional

 

Enable Widget Popup

This will open the widget inside a full screen module.

popup: true

Example
<span class="st_sharethis" displayText="Share" st_url="http://sharethis.com" st_title="Sharing Rocks!"></span>

<script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script>
<script type="text/javascript">
    stLight.options({
        publisher: '12345',
        popup: 'true'
    });
</script>

Result: