Hello,
Is it possible to disable the “mode” button with the block.json ?
I found how to do it with the old function “acf_register_block” :
https://support.advancedcustomfields.com/forums/topic/switch-to-edit-mode-by-default/
I tried to add “mode” : false in supports on the block.json, but it doesn’t work.
Thank you
Did you try to put mode false in the acf part of block.json, not supports? So in your block.json, it would be something like:
{
"name": "your-block",
"title": "Your Block",
"description": "A dummy block",
"apiVersion": 2,
"acf": {
"mode": false,
"renderTemplate": "blocks/your-block/your-block.php"
}
}