nuwud
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: showing lots of style tags in footer in block themeI use BeaverBuilder (no Gutenberg) and I get Containers with styles, too.
It was throwing these errors in HTML Validator plugin:
Error: Element style not allowed as child of element body in this context. (Suppressing further errors from this subtree.)These are the lines of code that were being generated after closing footer tag but before closing body tag:
<style>.wp-container-1 > .alignleft { float: left; margin-inline-start: 0; margin-inline-end: 2em; }.wp-container-1 > .alignright { float: right; margin-inline-start: 2em; margin-inline-end: 0; }.wp-container-1 > .aligncenter { margin-left: auto !important; margin-right: auto !important; }</style> <style>.wp-container-2 > .alignleft { float: left; margin-inline-start: 0; margin-inline-end: 2em; }.wp-container-2 > .alignright { float: right; margin-inline-start: 2em; margin-inline-end: 0; }.wp-container-2 > .aligncenter { margin-left: auto !important; margin-right: auto !important; }</style>I tried this but it did not work:
remove_filter( ‘render_block’, ‘wp_render_layout_support_flag’, 10, 2 );
remove_filter( ‘render_block’, ‘gutenberg_render_layout_support_flag’, 10, 2 );I contacted BeaverBuilder support and they told me to try disabling the Footer Widgets in Footer Widgets Display. It worked. The error is gone, but so is my use of the Footer widgets (thankfully I did not use them on that website, but I have others that do).
WordPress needs to handle whatever this css injection is fairly quickly.
You were right about the dates being formatted differently, but correcting them didn’t change the error for me.
Hi, I have the same issue.
It was in the description.
Thanks! That totally did the trick!! I am very grateful for your assistance.