Theme.json changes my block editor’s style
-
Hi! I’m using the Newsmatic theme which doesn’t support the Global Styles feature as far as I can tell. So in order to enable ‘lightbox’ so all my images can expand on clics by default, I created a theme.json file in my theme’s directory with the following code:
{ ? ? "version": 2, ? ? "settings": { ? ? ? ? "blocks": { ? ? ? ? ? ? "core/image": { ? ? ? ? ? ? ? ? "lightbox": { ? ? ? ? ? ? ? ? ? ? "enabled": true ? ? ? ? ? ? ? ? } ? ? ? ? ? ? } ? ? ? ? } ? ? } }
And it works! But it’s erasing the style of my post’s editor. So basically the editor is not centered and the properties don’t follow the theme’s. Is there a way to enable this without messing my editor’s style?
Thank you!
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- You must be logged in to reply to this topic.