WordPress.org

Ready to get started?Download WordPress

Forums

Subscribe Button by AddToAny
[resolved] [Plugin: AddToAny: Subscribe Button] Does not validate. (5 posts)

  1. Jonathan Desrosiers
    Member
    Posted 3 years ago #

    The current version (.9.9.6.4) does not validate. The Javascript added is added within the UL, but not in an LI, thus breaking validation attempts.

    http://wordpress.org/extend/plugins/add-to-any-subscribe/

  2. micropat
    Member
    Plugin Author

    Posted 3 years ago #

    Both plugins output semantic code and should validate perfectly, but which plugin are you referring to? You say version .9.9.6.4 but that's the AddToAny Sharing plugin, not the AddToAny Subscribe plugin.

  3. Jonathan Desrosiers
    Member
    Posted 3 years ago #

    My mistake Micropat, I meant AddToAny: Share/Bookmark/Email Button. But it appears you created both?

    The error I receive is:

    document type does not allow element "script" here; assuming missing "li" start-tag

    It comes from the javascripts that are output around 251-263 in add-to-any.php. As I said, the scripts are output within the UL but not in an LI. To fix this I enclosed it in an LI and gave it a display:none as I could not print it outside of the UL.

    I tried just moving the closing UL before the script is output, however I can't find the location that the original one is output.

  4. micropat
    Member
    Plugin Author

    Posted 3 years ago #

    Hmm... the non-semantic code doesn't seem like it's coming from the plugin, and after taking a took at the source of your site (I'm guessing) I see you've done a bit of customization for AddToAny (the icons look great!).

    Unfortunately it's difficult to tell which code might be yours and which code is generated from the plugin. Can you give some insight into how you have AddToAny setup on your site?

    Also, some quick feedback: "Email" is now offered as a standalone service in the plugin. :)

  5. Jonathan Desrosiers
    Member
    Posted 3 years ago #

    We do use it on that site, however that is at version .9.9.5.7. Your comment sparked a eureka moment for me though and I found the issue! I failed to define a html_container_open and html_container_close parameter.

    The site I am currently using the latest version on is here.

    Thanks for the compliment on the customization, I will pass that to our designer :)

    We would gladly give you an updated set of icons for the plugin in exchange to being listed as a contributor or something. Let me know if that is something you would want to arrange.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic