Sharing Customization

Single Instance - Share Specific Page

Use the following code to have AddToAny to share a specific link.

Using data attributes

Set the page URL in the data-a2a-url attribute, and set the page title in the data-a2a-title attribute.

<div class="a2a_kit a2a_kit_size_32 a2a_default_style" data-a2a-url="http://www.example.com/page.html" data-a2a-title="Example Page">
    <a class="a2a_button_facebook"></a>
    <a class="a2a_button_twitter"></a>
    <a class="a2a_button_google_plus"></a>
    <a class="a2a_dd" href="https://www.addtoany.com/share"></a>
</div>

<script async src="//static.addtoany.com/menu/page.js"></script>

Using JavaScript

Alternatively, you can use JavaScript for the same configuration.

<div class="a2a_kit a2a_kit_size_32 a2a_default_style">
    <a class="a2a_button_facebook"></a>
    <a class="a2a_button_twitter"></a>
    <a class="a2a_button_google_plus"></a>
    <a class="a2a_dd" href="https://www.addtoany.com/share"></a>
</div>

<script type="text/javascript">
var a2a_config = a2a_config || {};
a2a_config.linkname = 'Example Page';
a2a_config.linkurl = 'http://www.example.com/page.html';
</script>

<script async src="//static.addtoany.com/menu/page.js"></script>