Theme.json: image block missing block spacing on front end
-
Hi there. After updating to WP 6.3, I noticed that image blocks are missing the added block spacing above them. Every other block has block spacing above them. The missing block spacing on the image only happens on the front end, in the editor it looks normal.
The culprit is the following style, included with a <style> tag:
<style id='wp-block-image-theme-inline-css'> .wp-block-image { margin: 0 0 1em; } </style>
How is this style being added? It is not from my stylesheets, or specified in my theme.json… I think. I noticed that the problem goes away if I remove blockGap: true from my spacing settings. But then, blocks that can use block spacing no longer have the option in their style settings… so removing blockGap: true is not a solution for me.
Has anyone else run into this? Where is the wp-block-image-theme-inline-css coming from, how do I remove it?
- The topic ‘Theme.json: image block missing block spacing on front end’ is closed to new replies.