You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For the previous editor we had the possibility to remove a default meta box with remove_meta_box. That was useful if, for example, you wanted to create an alternative box for tags.
Is there anything equivalent for Gutenberg, i.e. to remove a panel from the settings on the right side? I was checking if you could simply hide the element, but all divs seem to have the class “components-panel__body” and no id. So there doesn’t seem to be a way how to select a particular panel. I would prefer, however, to remove the element already before rendering the page if that’s possible, not just with jQuery.
There's an API used in the options panel to hide these panels, I think we can just use it here?
I have PR almost ready which adds another flag. The issue with the existing action is that you still would be able to enable it back using Options modal. My change will put the editor in the following state:
Activity
youknowriad commentedon Jun 28, 2018
Let's consolidate in #6533
genseirin commentedon Nov 12, 2018
This has been closed, so is there any solution how to remove the panel of the post tags?
gziolo commentedon Nov 12, 2018
You can do the following as of today:
Howeve it won't remove the panel's title. I will have a look tomorrow and find out if that is easy to do.
youknowriad commentedon Nov 13, 2018
There's an API used in the options panel to hide these panels, I think we can just use it here?
gziolo commentedon Nov 13, 2018
I have PR almost ready which adds another flag. The issue with the existing action is that you still would be able to enable it back using Options modal. My change will put the editor in the following state: