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;
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.