Support

Account

Home Forums Gutenberg Why are spacing options not appearing for my ACF block? Reply To: Why are spacing options not appearing for my ACF block?

  • This works however, not if you don’t want margin/padding on for other blocks. The above method will turn it on for all blocks. You’ll have to assign your acf block within the theme.json and give it custom elements like so…

    "settings": {
    	
    		"blocks": {
    			
    			"acf/acf-block-name": {
    				"spacing": {
    					"margin": true
    					
    				}
    			},
    		
    		
    			
    		}
    	},

    This will bring up the detail just for your acf block.

    However, I am not having the problem that the margin setting I’ve chosen is just adding the number to the inline style and no measurement i/e 20px it just adding margin-top: 20;