Sharing Customization

Google+ Share Button

Use the following code as a template for displaying a Google+ Share button.

Note: Google no longer provides share counters.

Default Google+ Share button

<div class="a2a_kit a2a_default_style">
    <a class="a2a_button_google_plus_share"></a>
</div>

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

Add the following HTML code, for example, to the "Service Buttons HTML code" box in Drupal Configuration > Web services > AddToAny > Buttons > Service Buttons.

<a class="a2a_button_google_plus_share"></a>

In WordPress, the Google+ Share button is available by clicking the "Add/Remove Services" button in Settings > AddToAny > Share Buttons.

Note: When the Do Not Track option is enabled in a browser, AddToAny prevents the Google+ Share button from loading to prevent Google tracking across sites.


Custom Google+ Share button

Each Google+ Share button is independently customizable by specifying any Google+ Share button attribute as a data attribute. For example, you can change the annotation of the button to a vertical bubble, target a specific URL to share, and much more.

<div class="a2a_kit">
    <a class="a2a_button_google_plus_share" data-annotation="vertical-bubble" data-href="http://example.com/"></a>
</div>

<script async src="https://static.addtoany.com/menu/page.js"></script>
<a class="a2a_button_google_plus_share" data-annotation="vertical-bubble" data-href="http://example.com/"></a>