WordPress.org

Forums

AddThis Sharing Buttons
[resolved] Custom buttons code textarea mangles markup (5 posts)

  1. helgatheviking
    Member
    Posted 2 years ago #

    When pasting custom code into the plugin options, it saves incorrectly.

    I'm trying to enable the floating menu bar (which the Addthis site claims works) since there is no easy way to enable this style via the plugin.

    So I am pasting this into the custom code textarea:

    <!-- AddThis Button BEGIN -->
    <div class="addthis_toolbox addthis_floating_style addthis_32x32_style" style="left:50px;top:50px;">

    And the resulting code is always:

    <!-- style="left:50px;top:50px;"  AddThis Button BEGIN -->
    <div class="addthis_toolbox addthis_floating_style addthis_32x32_style">

    I'm not sure if it is just an overaggressive validation filter, but I can't even test if the floating toolbar will work until the settings save properly.

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

  2. Srijith V
    AddThis Samurai
    Plugin Contributor

    Posted 2 years ago #

    Yes you are right. The styling part is being stripped of by our validation filter. You can add the styling to your css file and it will do the same.

    . addthis_floating_style {
           left:50px;top:50px;
    }
  3. helgatheviking
    Member
    Posted 2 years ago #

    Thank you! That works. Though I am still disappointed by AddThis' floating style.... it is just fixed positioning whereas I was hoping it would be something more like:

    http://www.dnainfo.com/chicago/20130617/uptown/chicago-inter-handball-club-aims-showcase-sport-at-north-avenue-beach

  4. Srijith V
    AddThis Samurai
    Plugin Contributor

    Posted 2 years ago #

    There is an even better style coming up pretty soon! We will update here in this ticket when it's live. It is not yet passed our QA, but if you prefer you can try it out from our Development branch: http://downloads.wordpress.org/plugin/addthis.zip

    *Please note that this is not production ready and might have issues.

  5. helgatheviking
    Member
    Posted 2 years ago #

    Neat. Probably will be too late to help me on this particular project, but good to know AddThis is working on some improvements. Thanks again.

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.