WordPress.org

Forums

AddThis Sharing Buttons
Adding a wrapper div prevents display of buttons (3 posts)

  1. helgatheviking
    Member
    Posted 2 years ago #

    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>
    </div>
    </div>

    Image source URLs intentionally obscured.

    http://wordpress.org/extend/plugins/addthis/

  2. Srijith V
    AddThis Samurai
    Plugin Contributor

    Posted 2 years ago #

    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>
    </span>
    </div>
  3. helgatheviking
    Member
    Posted 2 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • AddThis Sharing Buttons
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.