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?
For anyone who might land on this thread, I managed to figure this out: I initially thought this issue might be related to using ACF blocks (as opposed to native blocks) but it actually derives from the theme, specifically the need for a theme.json
file. I created a theme.json
file at the root of my theme folder, added the following settings, and those options (spacing, dimensions, etc.) are now appearing:
{
"version": 2,
"settings": {
"appearanceTools": true,
"layout": {
"contentSize": "1170px",
"wideSize": "1440px"
},
"spacing": {
"margin": true,
"padding": true
}
}
}
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.