• Resolved wordmax

    (@wordmax)


    Checked the theme for HTML validation errors at https://validator.w3.org/ and seeing the following errors which appear to be occurring after the </footer> tag. Any ideas why? I have not modified any core and a pretty standard simple configuration of the theme w/ customization options.

    Error: Element style not allowed as child of element body in this context. (Suppressing further errors from this subtree.)
    From line 541, column 1; to line 541, column 7
    r></div><style>.wp-co
    
    Error: Element style not allowed as child of element body in this context. (Suppressing further errors from this subtree.)
    From line 542, column 1; to line 542, column 7
    }</style><style>.wp-co
    
    Error: Element style not allowed as child of element body in this context. (Suppressing further errors from this subtree.)
    From line 543, column 1; to line 543, column 7
    }</style><style>.wp-co
    <style>.wp-container-1 .alignleft { float: left; margin-right: 2em; }.wp-container-1 .alignright { float: right; margin-left: 2em; }</style>
    <style>.wp-container-2 .alignleft { float: left; margin-right: 2em; }.wp-container-2 .alignright { float: right; margin-left: 2em; }</style>
    <style>.wp-container-3 .alignleft { float: left; margin-right: 2em; }.wp-container-3 .alignright { float: right; margin-left: 2em; }</style>

    Please advise.

    Thanks!

    • This topic was modified 4 years, 1 month ago by wordmax.
    • This topic was modified 4 years, 1 month ago by wordmax.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Hello @wordmax

    I’m afraid to say that these do not come from our theme, but from WordPress itself. These are related to some widgets placed in the sidebar, that come from the core WP gallery. These are outputting their styles outside of the main container tag, even on the default 2021 theme.

    My recommendation would be to get in touch with the Gutenberg developers here — https://ww.wp.xz.cn/support/plugin/gutenberg/ — as they should definitely have more answers in regards to this.

    Hope this points you in the right direction.

    Thanks!

Viewing 1 replies (of 1 total)

The topic ‘HTML validation errors after footer…’ is closed to new replies.