Home › Forums › Gutenberg › Edit mode doesn't work › Reply To: Edit mode doesn't work
Hey there,
Setting “mode: edit” in your block will only set the default mode that should be used for the block. If you then want to disable the toggle, you need to set “supports: mode: false” in your block.json too.
{
"apiVersion": 2,
"name": "acf/home-solutions",
"title": "Lösungen (Home)",
"description": "Der Lösungen Bereich - nur für die Startseite",
"category": "xxx",
"icon": "star-filled",
"keywords": ["home", "lösung"],
"acf": {
"mode": "edit",
"renderTemplate": "home-solutions.php"
},
"supports": {
"align": false,
"mode": false,
},
"style": ["file:./style/home-solutions.css"]
}
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.