• Resolved Nic727

    (@nic727)


    Hi,

    It’s my first time using theme.json

    However, I have an issue where when I use this file, all default WordPress styles from the editor are overwritten by mine. How can I bring back the default style for the editor? I find it a bit better to create content.

    Thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz

    (@bcworkz)

    On an edit screen, go 3 dot icon > Preferences > General. Turn off the Use theme styles option.

    Thread Starter Nic727

    (@nic727)

    Half working. The font style is removed, but I have a problem with the padding.

    https://i.postimg.cc/xdNVtJKs/image.png

    EDIT: Fixed by adding some size to layout options.

    {
        "version": 2,
        "settings": {
            "appearanceTools": true,
            "layout": {
    			"contentSize": "800px", <---- HERE
    			"wideSize": "80%" <---- HERE
    		},
            "spacing": {
                "blockGap": true,
    			"units": [
    				"%",
    				"px",
    				"em",
    				"rem",
    				"vh",
    				"vw"
    			]
    		}
        }
    }
    • This reply was modified 2 years, 9 months ago by Nic727. Reason: Fixed
    • This reply was modified 2 years, 9 months ago by Nic727.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘theme.json – how to get block editor default style back?’ is closed to new replies.