Floating Share Bar option

Created on 21 March 2017, over 7 years ago
Updated 3 August 2023, over 1 year ago

Is there currently a way to use the AddToAny floating share bar?

Right now it appears that when I select a content type, I also have to select an area _within_ that content type for the sharing icons. What I'm looking for is the ability to add a floating share bar as in the link above for specific content types.

Happy to submit a PR if the functionality doesn't currently exist it would be welcomed!

✨ Feature request
Status

Needs work

Version

2.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States micropat
  • πŸ‡³πŸ‡¬Nigeria chike Nigeria

    Using Drupal 10.1.1, CKEditor wipes out the code at #2 if inserted through the UI. I haven't tried making the block programmatically.

  • πŸ‡ΊπŸ‡ΈUnited States micropat

    Since Drupal now strips empty elements in a Full HTML block, a workaround is to add some span.a2a_label text elements which are visually hidden by AddToAny.

    <div class="a2a_kit a2a_kit_size_32 a2a_floating_style a2a_vertical_style" style="left:0px;top:150px;">
        <a class="a2a_button_facebook">
            <span class="a2a_label">Facebook</span>
        </a>
        <a class="a2a_button_pinterest">
            <span class="a2a_label">Pinterest</span>
        </a>
        <a class="a2a_button_whatsapp">
            <span class="a2a_label">WhatsApp</span>
        </a>
        <a class="a2a_dd">
            <span class="a2a_label">AddToAny</span>
        </a>
    </div>
  • πŸ‡³πŸ‡¬Nigeria chike Nigeria

    Thank you this worked!

Production build 0.71.5 2024