Support » Plugin: Share Buttons by AddThis » Adding a wrapper div prevents display of buttons

  • For some reason, adding a simple wrapper div element around the addthis_toolbox code causes the buttons to completely disappear from the markup. Tested with Twenty Twelve and no other plugins enabled.

    <div class="addthis_wrapper">
    <div class="addthis_toolbox addthis_default_style sticky">
    <a class="addthis_button_facebook"><img src="Social.FB.Grey.png" width="32" height="32" border="0" alt="Share" /></a>
    <a class="addthis_button_linkedin"><img src="Social.IN.Grey.png" width="32" height="32" border="0" alt="Share" /></a>
    <a class="addthis_button_twitter"><img src="Social.TW.Grey.png" width="32" height="32" border="0" alt="Share" /></a>
    <a class="addthis_button_compact"><img src="Social.Social.Grey.png" width="32" height="32" border="0" alt="Share" /></a>

    Image source URLs intentionally obscured.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The issue is due to the way we parse the code. One quick fix is to use the following code.

    <div class="addthis_wrapper">
    <span class="addthis_toolbox addthis_default_style sticky">
    <a class="addthis_button_facebook"></a>
    <a class="addthis_button_linkedin"></a>
    <a class="addthis_button_twitter"></a>
    <a class="addthis_button_compact"></a>

    Do you mean parse on the admin side, or parse on the jquery side?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Adding a wrapper div prevents display of buttons’ is closed to new replies.