Ready to get started?Download WordPress


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

  1. charlyanderson
    Posted 1 year ago #


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

    Any suggestions?


  2. charlyanderson
    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:


Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic


No tags yet.