• Resolved SchweizerSchoggi

    (@schweizerschoggi)


    Hi
    We’re using this plugin for quite a while now and it did work well so far. But now we’re experiencing a strange problem: the buttons are empty where there should be a SVG instead.

    Usually there is a div being rendered, containing an anchor with a span inside containing a SVG. On the website mentioned above there is only the div and the anchor, but the latter is empty.

    So instead of

    <div class="a2a_kit a2a_kit_size_26 addtoany_list" ...>
    <a class="a2a_button_facebook" href="/#facebook" title="Facebook" ...>
    <span class="a2a_svg a2a_s__default a2a_s_facebook" ...>
    <svg focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path fill="#333333" d="M17.78 27.5V17.008h3.522l.527-4.09h-4.05v-2.61c0-1.182.33-1.99 2.023-1.99h2.166V4.66c-.375-.05-1.66-.16-3.155-.16-3.123 0-5.26 1.905-5.26 5.405v3.016h-3.53v4.09h3.53V27.5h4.223z"></path></svg>
    </span>
    </a>
    </div>

    there is only a

    <div class="a2a_kit a2a_kit_size_26 addtoany_list" ...>
    <a class="a2a_button_facebook" href="/#facebook" title="Facebook" ...>
    </a>
    </div>

    What is causing this, what can I check to fix this?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter SchweizerSchoggi

    (@schweizerschoggi)

    a day later the content is back again… no idea why, but yeah, it’s working again

    Plugin Author micropat

    (@micropat)

    The href value of #facebook indicates AddToAny is loading, so it’s odd the SVG icons wouldn’t be injecting.

    If it happens again, inspect for any HTML/text between the <a> tags. If there’s HTML/text between an <a> tag, AddToAny skips inserting the SVG to allow for custom text or a custom icon (custom icons HTML example).

    It’s possible some other script or browser extension is inserting something additional like an ‘opens in new tab/window’ icon in a breaking way (instead of with CSS).

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Share buttons empty’ is closed to new replies.