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

  1. charlyanderson
    Posted 2 years ago #


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

    Any suggestions?


  2. charlyanderson
    Posted 2 years 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
    Jetpack Mechanic
    Plugin Author

    Posted 2 years 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

  • Jetpack by WordPress.com
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.