WordPress Sharing Customization

Share Counters

Individual share counts of the same style can be placed alongside supported AddToAny share buttons.

Note: LinkedIn no longer provides share counts.

Large share counters

Share counters

AddToAny offers share counts alongside scalable vector icons (32 x 32 pixels and greater SVG format).

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

In WordPress, go to Settings > AddToAny, then click the down-arrow below the icon of an enabled service to toggle the "Show count" checkbox.

<a class="a2a_button_facebook a2a_counter"></a>
<a class="a2a_button_pinterest a2a_counter"></a>
<a class="a2a_button_tumblr a2a_counter"></a>
<a class="a2a_button_reddit a2a_counter"></a>
<div class="a2a_kit a2a_kit_size_32 a2a_default_style">
    <a class="a2a_button_facebook a2a_counter"></a>
    <a class="a2a_button_pinterest a2a_counter"></a>
    <a class="a2a_button_tumblr a2a_counter"></a>
    <a class="a2a_button_reddit a2a_counter"></a>
    <a class="a2a_dd a2a_counter" href="https://www.addtoany.com/share"></a>
</div>

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

Small share counters

AddToAny offers small share counts alongside share icons in the traditional 16 x 16 pixels format.

<div class="a2a_kit a2a_default_style">
    <a class="a2a_button_facebook a2a_counter"></a>
    <a class="a2a_button_pinterest a2a_counter"></a>
    <a class="a2a_button_reddit a2a_counter"></a>
    <a class="a2a_button_tumblr a2a_counter"></a>
    <a class="a2a_dd a2a_counter" href="https://www.addtoany.com/share"></a>
</div>

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

Infinitely scalable share counters

Large retina-ready icons and counters are scalable to any size while remaining perfectly crisp on high pixel density displays.

<div class="a2a_kit a2a_kit_size_64 a2a_default_style">
    <a class="a2a_button_facebook a2a_counter"></a>
    <a class="a2a_button_pinterest a2a_counter"></a>
    <a class="a2a_button_reddit a2a_counter"></a>
    <a class="a2a_dd a2a_counter" href="https://www.addtoany.com/share"></a>
</div>

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

Details

<div class="a2a_kit a2a_kit_size_32 a2a_default_style">
    <a class="a2a_button_facebook a2a_counter"></a>
    <a class="a2a_button_pinterest a2a_counter"></a>
    <a class="a2a_button_reddit a2a_counter"></a>
    <a class="a2a_button_tumblr a2a_counter"></a>
    <a class="a2a_dd a2a_counter" href="https://www.addtoany.com/share"></a>
</div>

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

To place a share counter alongside a standalone service that supports counters, add a class name of a2a_counter to the service.


Supported services

AddToAny gets share counts directly from major services that provide share count APIs. Service counters are continually supported based on usage and API availability.

  • Facebook
  • Pinterest
  • Reddit
  • Tumblr

The AddToAny universal share counter aggregates counts from Facebook by default. When additional service counters (Pinterest, Reddit, etc.) are active, those counts are included in the universal count as well.


Other services

Twitter, LinkedIn, Google+ no longer provide public share counts.


Share count recovery

Moving to HTTPS, a new domain, or a change in URL structure will cause share counters to reset because services count new URLs separately. To fix share counts in such cases, AddToAny lets you recover share counts by combining new share counts with old share counts.

Recover share counts with the AddToAny share count recovery feature.