Drupal Sharing Customization

URL & Title to Share

By default the buttons target the current page URL and title. You can have the buttons target a different page URL and title.

<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 Title">
    <a class="a2a_button_facebook"></a>
    <a class="a2a_button_mastodon"></a>
    <a class="a2a_dd" href="https://www.addtoany.com/share"></a>
</div>

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

AddToAny's sharing plugin for WordPress handles shared URLs and titles by default. Developers looking to extend the plugin beyond the default placement should see the sharing plugin's FAQ.

AddToAny's sharing module for Drupal handles shared URLs and titles by default.

Tip: For dynamic/AJAX sites and pages with named anchors, you can leave these values unset and AddToAny will share the current page URL including the current hash.