How to hide specific Gutenberg blocks settings from users

As far as I know, as of right now there isn’t a built-in way of removing unwanted inspector controls.

You can read THIS POST, but the gist is that there are proposed solutions out there and devs are aware but they have bigger fish to fry atm, apparently.

With that said, I guess you are left with 2 options.

1 – Copy the block in question and remake it without the options

This could be difficult, especially if you don’t have any JS and/or block editor dev experience.

2 – Use some crazy CSS selector to add display:none to the options

This is probably easier but you still have to figure out the right CSS selector, which is difficult due to no IDs or classes on the option elements.

Neither of these solutions are great but I think thats what we have, for now…

Leave a Comment