Support

Account

Home Forums Backend Issues (wp-admin) Unable to get “supports” to work in block.json

Unread

Unable to get “supports” to work in block.json

  • Hello!

    I have seen a lot of examples of people using “supports” in their block.json file. For some reason I have not been able to get it to work. Am I missing something?

    I am using latest version of ACF Pro.

    
    {
        "name": "my-domain/icon-bullet-list",
        "title": "Icon Bullet List",
        "description": "Add a list with a FontAwesome icon.",
        "style": [ "file:./icon-bullet-list.css", "file:../../css/fonts.css" ],
        "category": "my-domain",
        "icon": "list-view",
        "keywords": ["icon", "bullet list", "unordered list"],
        "acf": {
            "mode": "preview",
            "renderTemplate": "template-icon-bullet-list.php"
        },
        "align": "full",
        "supports": {
            "spacing": {
    			"margin": true,
    			"padding": true
    		}
        }
    }
    

    Thanks!

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.