showing lots of style tags in footer in block theme
-
I am using TT1 blocks theme and gutenberg latest version in wordpress 5.8. I noticed that the pages are generating lots of style tag at bottom after content with repeating CSS, for example
<style>.wp-container-6137aab4c21f8 > * {max-width: 610px;margin-left: auto !important;margin-right: auto !important;}.wp-container-6137aab4c21f8 > .alignwide { max-width: 1240px;}.wp-container-6137aab4c21f8 .alignfull { max-width: none; }.wp-container-6137aab4c21f8 .alignleft { float: left; margin-right: 2em; }.wp-container-6137aab4c21f8 .alignright { float: right; margin-left: 2em; }.wp-container-6137aab4c21f8 > * + * { margin-top: var( --wp--style--block-gap ); margin-bottom: 0; }</style>
I have enabled
add_filter( 'should_load_separate_core_block_assets', '__return_true' );
in functions.php file for site speed.You can see in the theme I am creating [ redundant link removed ], what would be the reason ? is it a bug in block based theme ( full site editing theme ), or its a bug of gutenberg latest version ? So anybody have idea about this ?
- This topic was modified 3 years, 6 months ago by . Reason: Moved to Fixing WordPress, this is not an Everything else WordPress topic
The page I need help with: [log in to see the link]
- The topic ‘showing lots of style tags in footer in block theme’ is closed to new replies.