You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The file nav_walker.php adds two inline <style>'s after the header by the hook neve_after_header_wrapper_hook, that means as a child element of the < body > under certain conditions. This gives errors by the W3C Validator, as <style> elements are only allowed as child of the < head > and thus reduces technical SEO. Both inline styles are added on our website to the < body >.
Alternatively, if the < style > is only meant for the subtree, you could add the boolean scoped attribute.
Step-by-step reproduction instructions
Default installation of Neve contains on our staging site already one <style> element added to the .
Screenshots, screen recording, code snippet or Help Scout ticket
No response
Environment info
No response
Is the issue you are reporting a regression
No
The text was updated successfully, but these errors were encountered:
jankohoener
added
the
bug
This label could be used to identify issues that are caused by a defect in the product.
label
Jul 30, 2024
I'm assigning this to you to check. Ideally we should move inline CSS to tag but we should be careful and test it if it doesn't break anything this way and if we have the information needed at the time at wp_head to inject it there.
Since the scoped attribute is no longer supported, and loading CSS in the head always impacts the page weight, even if the CSS is not used, I propose that we dont do any action for now. We should wait until we can figure out a better and more scalable solution.
Description
The file nav_walker.php adds two inline <style>'s after the header by the hook neve_after_header_wrapper_hook, that means as a child element of the < body > under certain conditions. This gives errors by the W3C Validator, as <style> elements are only allowed as child of the < head > and thus reduces technical SEO. Both inline styles are added on our website to the < body >.
Alternatively, if the < style > is only meant for the subtree, you could add the boolean scoped attribute.
Step-by-step reproduction instructions
Default installation of Neve contains on our staging site already one <style> element added to the .
Screenshots, screen recording, code snippet or Help Scout ticket
No response
Environment info
No response
Is the issue you are reporting a regression
No
The text was updated successfully, but these errors were encountered: