WordPress.org

Ready to get started?Download WordPress

Forums

WP Buttons
WP Buttons but not Valid Code (3 posts)

  1. CreativeWP
    Member
    Posted 2 years ago #

    Thanks Leo Jiang from (http://dev.linksku.com/sharepost/) for making this awesome code. BUT, is it too much to ask to see if you can make it to pass validation?

    Here are my errors in my website:

    Error: there is no attribute "share_url"
    Error: there is no attribute "data-url"
    Error: there is no attribute "data-counter"
    Error: there is no attribute "href"
    Error: there is no attribute "size"
    Error: there is no attribute "count"
    Error: element "g:plusone" undefined
    Error: there is no attribute "displayText"
    Error: there is no attribute "st_url"

    Can this be done with JQuery?

    Thanks,

  2. linksku
    Blocked
    Plugin Author

    Posted 2 years ago #

    Some of the buttons are marked as "breaks validation". The errors that you provided are from the ShareThis and Google +1 buttons. All other ShareThis/+1 plugins will also cause the errors.

    If I make it load with jQuery, many users will not like the extra 70kb+ script.

    Let me know if you have any other suggestions :)

  3. CreativeWP
    Member
    Posted 2 years ago #

    Please forgive me. But the only thing that needs to be done for the Jquery (I am not a ninja in Jquery) is to wrap the section that is is giving the validation problem. EG:

    [Code moderated as per the Forum Rules. Please use the pastebin]

    Also, those without javascript turned off, I believe is something like 1%.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags