-
Hi DawnThemes support.
We are experiencing a problem with your plugin (version 3.4.3.4).
Normally, when custom CSS is configured for an element in WP Bakery, it’s returned as an inline <style> element in the source.
In a normal situation, this happens in the head, just before or somewhere near the </head> closing tag.With your plugin enabled and, for instance, viewing a page with a custom product archive template, the custom CSS is, instead of rendering in the head, rendered at the first line in the source, before the <html> opening tag.
🚨 This a huge issue for W3C validation, and actually broke a theme we are working with.
In your plugin, the code to output the custom inline CSS for, in this case a custom product archive, is in dtwpb_redirect_product_archive_template, on line 785 in includes/class-woocommerce-page-builder-manager.php.
Here, I can see that it first echos the custom CSS inline style, and then returns the template.
I tested and verified this behaviour on different websites.
Also, see the attached screenshot of the source.Can you please dive into this issue and make sure there is no code outputted in the source before the <html> opening tag?
Thank you in advance,
happy to hear from you soon.
Jeroen
Custom CSS outputted above html openingtag
This topic is: resolved