Is it possible to remove Core/Blocks supports? #48428
-
Hello, I searched and tried by using theme.json, php and js filters but with no success for now. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi. If your theme has {
"$schema": "https://schemas.wp.org/trunk/theme.json",
"version": 2,
"settings": {
"appearanceTools": true,
"layout": {
"contentSize": "840px",
"wideSize": "1100px"
},
"blocks": {
"core/button": {
"color": {
"background": false,
"customGradient": false,
"gradients": []
},
"border": {
"radius": false
}
}
}
}
} However, you cannot opt out of settings that are unique to that block, such as the width setting of the button block. |
Beta Was this translation helpful? Give feedback.
Hi.
If your theme has
theme.json
, you can opt-out by setting the following. This is a sample that disables the button background color and border radius controls.However, you cannot opt out of settings that are unique to that block, such as the width setting of the button block.