Hi @wpfed!
Are you trying to remove all column settings in the sidebar? Or close the sidebar? Or what are you trying to do?
Thread Starter
Luke
(@wpfed)
hi @ellatrix thanks for replying,
I was thinking of removing the column settings, so a end user can not make modifications to the width through the range control, I prefer to just create my own column layouts that the user can pick from:
https://github.com/WordPress/gutenberg/pull/16129
Thanks!
I see. That’s not possible through a JavaScript API right now.
(If you really want to hide it, you could hide the section you want to remove with CSS. But I’m not officially recommending this. 😄 Maybe inserting something like .block-editor-block-inspector .components-panel__body { display: none; }
with JavaScript only if a column block is selected.)
Thread Starter
Luke
(@wpfed)
Okay great, thanks for the help!