Sharing Customization

Floating Share Buttons

AddToAny floating share buttons are available in vertical & horizontal fixed positions, and customizable for mobile, desktop, and all kinds of site layouts.

Vertical Share Bar

You can position floating vertical share buttons that are fixed alongside your site's content (like a sidebar), or docked to the far left or far right side of the user's screen.

The following example displays a vertical share bar that is docked to the left side of the user's screen, 150 pixels from the top.

<div class="a2a_kit a2a_kit_size_32 a2a_floating_style a2a_vertical_style" style="left:0px; top:150px;">
    <a class="a2a_button_facebook"></a>
    <a class="a2a_button_twitter"></a>
    <a class="a2a_button_pinterest"></a>
    <a class="a2a_dd" href="https://www.addtoany.com/share"></a>
</div>

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

In WordPress, go to Settings > AddToAny > Floating to enable and configure your vertical share bar.

The following example displays a vertical share bar that is fixed relative to a parent element (usually the site's main content), 150 pixels from the top of the page, and offset from the left of the parent element by 100 pixels. The parent element should have a specified width, and the vertical share bar code should placed as a descendant of that element as in following example. The current page displays this style on devices with a wide enough screen.

<div class="example_parent_element" style="margin:0 auto; width:900px;">
    
    <div class="a2a_kit a2a_kit_size_32 a2a_floating_style a2a_vertical_style" style="margin-left:-100px; top:150px;">
        <a class="a2a_button_facebook"></a>
        <a class="a2a_button_twitter"></a>
        <a class="a2a_button_pinterest"></a>
        <a class="a2a_dd" href="https://www.addtoany.com/share"></a>
    </div>
    
    <script async src="https://static.addtoany.com/menu/page.js"></script>
    
</div>

Horizontal Share Bar

You can position horizontal share buttons in a "floating bar" that is usually best docked to the bottom of the user's screen for mobile devices.

The following example displays a horizontal share bar that is docked to the bottom of the user's screen on the right side. The current page uses this style.

<div class="a2a_kit a2a_kit_size_32 a2a_floating_style a2a_default_style" style="bottom:0px; right:0px;">
    <a class="a2a_button_facebook"></a>
    <a class="a2a_button_twitter"></a>
    <a class="a2a_button_pinterest"></a>
    <a class="a2a_dd" href="https://www.addtoany.com/share"></a>
</div>

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

In WordPress, go to Settings > AddToAny > Floating to enable and configure your horizontal share bar.

The following example displays a center-aligned horizontal share bar that is docked to the bottom of the user's screen.

<div class="a2a_kit a2a_kit_size_32 a2a_floating_style a2a_default_style" style="bottom:0px; left:50%; transform:translateX(-50%);">
    <a class="a2a_button_facebook"></a>
    <a class="a2a_button_twitter"></a>
    <a class="a2a_button_pinterest"></a>
    <a class="a2a_dd" href="https://www.addtoany.com/share"></a>
</div>

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

Responsive Floating Share Buttons

Using CSS media queries, you can specify mobile/desktop breakpoints for responsive floating share buttons. For example, it is common to hide a "docked" vertical share bar on the smaller screens of mobile and tablet devices.

<style>
/* Hide AddToAny vertical share bar when screen is less than 980 pixels wide */
@media screen and (max-width: 980px) {
    .a2a_floating_style.a2a_vertical_style { display: none; }
}
</style>

Hide & Show On Scroll

With the data-a2a-scroll-show attribute, you can hide a floating bar until the page has been scrolled down a specific number of pixels, such as past a header region.

<div class="a2a_kit a2a_kit_size_32 a2a_floating_style a2a_vertical_style" data-a2a-scroll-show="100" style="left:0px; top:150px;">

You can also hide a floating bar when the page is scrolled down to a footer region by specifying a second value separated by a comma. This second value is the number of pixels from the bottom of the page.

<div class="a2a_kit a2a_kit_size_32 a2a_floating_style a2a_default_style" data-a2a-scroll-show="0,60" style="bottom:0px; right:0px;">