Sharing Customization

Google+ Share Button

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

Default Google+ Share button

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

<script async src="//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 > Standalone Buttons.


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.

To display or hide the Google+ Share button's count, go to WordPress Settings > AddToAny > Standalone Buttons, click the down arrow alongside the activated Google+ Share button and toggle "Show count".

<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="//static.addtoany.com/menu/page.js"></script>
<a class="a2a_button_google_plus_share" data-annotation="vertical-bubble" data-href="http://example.com/"></a>