Implementing Scrollable Images

I was implemented it for images, which shows lists of images inside a container like pdf viewer..I just overide the css property of bloc gallery class, and adding an additional class… .image-list{ position: relative !important; padding-bottom: 140% !important; overflow: hidden !important; border: 1px solid #ddd !important; } .blocks-gallery-grid{ position: absolute; left: 0; top: 0; width: … Read more

Gutenberg custom block: RichText underline button

In a block that I am currently trying to build I am using a RichText control. This has buttons/menu items for Bold, Italic, Code, Link, Inline Image and Strike though. Though there isn’t a button for underlining the text I can just use the key command [cmd+U] and it underlines. This seems to work and … Read more

When to use removeEditorPanel()

I think this is due to how you’ve destructured it out. I believe dispatch works as a realtime “action”. So you need call dispatch() when you want to remove the panel. Try this: const { dispatch } = wp.data; dispatch( ‘core/edit-post’ ).removeEditorPanel( ‘discussion-panel’ )