• Hi,

    I’m trying to enable the gap functionality that came with WordPress 5.9 via theme.json
    I have this code

    {
        "version": 2,
        "settings": {
            "appearanceTools": true,
            "layout": {
    			"contentSize": "800px",
    			"wideSize": "80%"
    		},
            "spacing": {
                "blockGap": true,
    			"units": [
    				"%",
    				"px",
    				"em",
    				"rem",
    				"vh",
    				"vw"
    			]
    		}
        }
    }

    But when creating multiple columns, I don’t see this new feature. Did I do something wrong?

    Thank you

Viewing 1 replies (of 1 total)
  • Hi Nic,

    Have you tried setting a gap size in the editor? The option should be called “Block spacing” and should be in the Dimensions section. Let me know if it’s not appearing.

    If you want to set a default gap, then you can add the following to the styles section:

    {
    	"version": 2,
    	"styles": {
    		"spacing": {
    			"blockGap": "1.5rem"
    		}
    	}
    }

    Hope this helps
    -Jamie

Viewing 1 replies (of 1 total)
  • The topic ‘WordPress 5.9 – Impossible to enable column gap functionality’ is closed to new replies.