Sharing Customization

Google +1 Button

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

Default Google +1 button

<div class="a2a_kit a2a_default_style">
    <a class="a2a_button_google_plusone"></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_plusone"></a>

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


Custom Google +1 button

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

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

<div class="a2a_kit">
    <a class="a2a_button_google_plusone" data-href="http://example.com/" data-size="tall"></a>
</div>

<script async src="//static.addtoany.com/menu/page.js"></script>
<a class="a2a_button_google_plusone" data-href="http://example.com/" data-size="tall"></a>