How to open WordPress media create/edit Gallery Dialog

The question is a few months old but still can help someone. To open the media uploader to the “edit gallery” view, you just have to set the state to “gallery-edit” like this : media_uploader = wp.media({ frame: “post”, state: “gallery-edit”, // here multiple: true, editing: true, }); For now, I still can’t figure out … Read more

how to disable a button added by a plugin in gutenberg toolbar?

I have found that you could add a className attribute to the button and select the button by document.getElementsByClassName query selector. so the code would be this ( function( wp ) { var MyCustomButton = function( props ) { return wp.element.createElement( wp.editor.RichTextToolbarButton, { icon: ‘editor-code’, title: ‘Sample output’, className: “foo” onClick: function() { console.log( ‘toggle … Read more

Can the Gutenberg editor be toggled closed?

You can’t move metaboxes/panels above the content area, they don’t logically sit in the same place/depth. Unlike the classic editor where everything is listed vertically by HTML markup, that’s not how the block editors UI was designed. Instead there’s a canvas with a block-list component, and a frame that contains the top toolbar, the sidebar, … Read more

Block editor not displaying properly

After some discussion with Tony Djukic, I attempted to restore my backup with a different plugin, Duplicator. This particular plugin creates its own fresh install of WP. Having run that script, everything in the site is working fine as of me writing this. It appears that using the old version of All-in-One WP Migration caused … Read more