Panel grids wp_footer styles invalid on W3C validator
-
Dear Authors,
First of all, thank you for this great plugin. Very versatile and easy to use.
I am using it in one of my WordPress theme which is under development. When using “Layout Builder Widget”, the builder styles for the widget are appended before the end of body tag with ID as “siteorigin-panels-grids-wp_footer”. This inline style tag doesn’t validate on validator.w3.org.
When layout builder widget is not used, only one instance of style tag is inserted in head which is perfectly valid.
I found these lines inside siteorigin-panels.php:
add_action('wp_head', 'siteorigin_panels_print_inline_css', 12); add_action('wp_footer', 'siteorigin_panels_print_inline_css');
If I remove the action hook for footer and add it to head, will it work? Or is there any other workaround so that styles are not appended in body tag.
Edit: Here is the screen shot of validation results: https://prntscr.com/9xlmz9
Thank you.
- The topic ‘Panel grids wp_footer styles invalid on W3C validator’ is closed to new replies.