Gutenberg blocks adding it’s own css v5.4?
-
I recently upgraded to WordPress 5.4 and I’m not sure if that’s the direct cause but now my Gutenberg blocks are always failing to parse in the editor. It appears it’s trying to add a new class to my save function return code. The class is “wp-block-[My Block Namespace]-[My Block Title]”. When it does this it’s trying to add a second class attribute to a tag that already has a class attribute. I added a wrapper div tag and that at least solved the parsing issue but now it’s taking the classes from my original div tag and adding them along with it’s css class to the wrapper div causing my styles to be all messed up. Did something change with v5.4? I can’t seem to find reference to it anywhere. Or is something else going on.
- The topic ‘Gutenberg blocks adding it’s own css v5.4?’ is closed to new replies.