Last active
November 24, 2023 12:36
-
-
Save lgladdy/a731b6bec4911d24c16e5327a29e7198 to your computer and use it in GitHub Desktop.
An example ACF block.json which disables align controls, but forces a default to wide
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "automatic-wide-width", | |
"title": "Automatically Align Wide", | |
"description": "A demo block.json for a forced align-wide block", | |
"apiVersion": 2, | |
"acf": { | |
"mode": "edit", | |
"renderTemplate": "render.php" | |
}, | |
"supports": { | |
"align": false, | |
}, | |
"attributes": { | |
"align": { | |
"type": "string", | |
"default": "wide" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment