Support

Account

Forum Replies Created

  • 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
    		}
    	}
    }
    
  • Thanks for your reply, @hube2 – I ended up using the init hook as indicated in your example, and I also made use of the add_option() / get_option() functions to force the utility function to run only once, as described in this post. For any others who may stumble across this thread and need to do something similar (e.g. utility function to update the content of a field for all posts), this approach worked well for me.

  • I can also confirm the update works- phew!

Viewing 3 posts - 1 through 3 (of 3 total)