Drupal Sharing Customization

LinkedIn Share Button

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

Note: LinkedIn no longer provides share counts.

Default LinkedIn Share button

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

In WordPress, the LinkedIn Share button is available by clicking the "Add/Remove Services" button in Settings > AddToAny > Share 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 target a specific URL to share.

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

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