WordPress.org

Ready to get started?Download WordPress

Forums

Jetpack by WordPress.com
[resolved] Validation problem (3 posts)

  1. charlyanderson
    Member
    Posted 1 year ago #

    Hi,

    Plugin seems to be causing validation error:-
    <style type='text/css'>img#wpstats{display:none}</style>

    Any suggestions?

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

  2. charlyanderson
    Member
    Posted 1 year ago #

    forgot to say what the error was doh. It's coming up with the following during validation.

    Element style not allowed as child of element div in this context. (Suppressing further errors from this subtree.)

  3. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 1 year ago #

    The validator returns an error because adding <style> inside <body> is not allowed for any doctype but HTML5.

    You can fix this issue by clicking on "Configure" under the Stats module in your dashboard, and choosing to display the Stats smiley.
    Once you have saved your changes, add the CSS code to hide the smiley to your theme's stylesheet:

    img#wpstats{display:none}

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.