• Resolved Lukasz

    (@wpfed)


    Similar to:

    wp.data.dispatch('core/edit-post').removeEditorPanel('discussion-panel');

    Is there a name for the column settings panel? something like this:

    wp.data.dispatch('core/column').removeEditorPanel('column-settings');

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Ella

    (@ellatrix)

    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 Lukasz

    (@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!

    Plugin Author Ella

    (@ellatrix)

    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 Lukasz

    (@wpfed)

    Okay great, thanks for the help!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Remove column settings panel’ is closed to new replies.