How to disable certain parts of Gutenberg
-
Hi,
How can we disable the following parts of Gutenberg (throughout the entire editor e.g. adding blocks, in every block):
- Patterns (e.g. when adding a block there is a tab for patterns, may also appear in other locations)
- Block styles (e.g. buttons block has a styles section in the panel to choose fill/outline)
- Button block’s styling options (any style based options e.g. border radius, color)
We understand we can control colors via the editor color palette, we can’t just return this empty as we want to use that for things like the cover block, but specifically not the buttons block.
Also we require the editor to look like the frontend, so we enqueue the frontend stylesheet in the editor. However as this includes rules for input fields, buttons, etc it can end up overriding the styles of the editor interface (e.g. we add a border to textareas, the textareas used for editing the title of the page in the editor now have that border which we do not want). Same for buttons, our button styles get picked up on the buttons within the page in the editor which is fine but they also get applied to the add block buttons in the editor interface. What is the recommended here so that doesn’t happen?
Thanks,
- The topic ‘How to disable certain parts of Gutenberg’ is closed to new replies.