I have some social buttons for sharing on my website (addthis) and I've added some text just above the buttons with an arrow pointing to them simply saying "Share this!"
Some people use adblock and have a setting that hides the social buttons. These people won't see the buttons but will still see the text "Share this!".
How can I make the "Share this!" text disappear for those who can't see the social buttons? Is there a way to check if the buttons exist for the user, and to then show/hide the other elements based on that? (other than checking for display:none, unless that is what adblock uses to hide the elements??? I don't know.)
I made a simple fiddle so you can see what I mean. I just pulled some of the code from the social plugin to display the Facebook icon.
https://jsfiddle.net/bsuup9vf/6/
<div class="addthis_responsive_sharing"> <!-- This line initiates the plugin to generate the rest of the code -->
<div id="share-this"> <!-- I want to hide this div only if the plugin is blocked or if it's elements aren't visible on the screen for some other reason -->
<div class="share-text">Share this!</div>
<span class="share-arrow right-arrow" style="font-size:24px;">⤹</span>
</div>
<!-- This is the parent div for the actual social buttons-->
<div id="atrsb" class="at-resp-share-element addthis_32x32_style at-mobile addthis-smartlayers addthis-animated at4-show">
<!-- Facebook - I pulled this from the live code just to display the FB icon -->
<span class="at-icon-wrapper" style="background-color: rgb(59, 89, 152);">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 32 32" title="Facebook" alt="Facebook" class="at-icon at-icon-facebook" style="fill: rgb(255, 255, 255);">
<g>
<path d="M22 5.16c-.406-.054-1.806-.16-3.43-.16-3.4 0-5.733 1.825-5.733 5.17v2.882H9v3.913h3.837V27h4.604V16.965h3.823l.587-3.913h-4.41v-2.5c0-1.123.347-1.903 2.198-1.903H22V5.16z" fill-rule="evenodd">
</path>
</g>
</svg>
</span> <!-- /.Facebook -->
</div> <!-- /.atrsb -->
</div> <!-- /.addthis_responsive_sharing>
Sorry if a similar question like this has been asked before.
Thank you everyone for the answers!