Sharing Customization

LinkedIn Share Button

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

Default LinkedIn Share button

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

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


Custom LinkedIn Share button

Each LinkedIn Share button is independently customizable by specifying one of the available LinkedIn Share button data attributes. For example, you can change the default counter to a vertical counter, and target a specific URL to share.

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

<div class="a2a_kit">
    <a class="a2a_button_linkedin_share" data-counter="top" data-url="https://example.com/"></a>
</div>

<script async src="//static.addtoany.com/menu/page.js"></script>
<a class="a2a_button_linkedin_share" data-counter="top" data-url="https://example.com/"></a>