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

Gutenberg CSS Issue

Your blockquote has a <p> tag in it that overwrites the font-size attribute. Either delete the <p> tag or add css for bolckquote p or/and .wp-block-quote p

Gutenberg Block: How to reload a ServerSideRender?

I solved it with an “update” button in the block. It is a bit weird because I need to send “fake” attributes to re-render it. But it works. var el = wp.element.createElement; var registerBlockType = wp.blocks.registerBlockType; var BlockControls = wp.blockEditor.BlockControls; var ServerSideRender = wp.serverSideRender; var Toolbar = wp.components.Toolbar; var IconButton = wp.components.Button; function sendfakeAttribute(props) { … 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