Categories
CMS Mastering Development Wordpress

Multiple Select on Gutenberg Sidebar as metakey

I want to show a multiple select element in the sidebar when editing a page in admin, where I can save the selected values in a metakey. Of course also load the selected values upon load of page-edit in admin. I manage to show the list, but I don’t know how to save it i […]

Categories
CMS Mastering Development Wordpress

Add button next to Switch to Draft, Publish, Preview in Gutenberg

I’m trying to add a button to the edit-post-header__settings layer in the Gutenberg editor, the one that contains the Preview, Publish, Switch to Draft buttons. These are the buttons on the top right corner. I found an example on how to add buttons that ties them to a sidebar in the WordPress Gutenberg handbook. Here […]

Categories
CMS Mastering Development Wordpress

Add button next to Switch to Draft, Publish, Preview in Gutenberg

I’m trying to add a button to the edit-post-header__settings layer in the Gutenberg editor, the one that contains the Preview, Publish, Switch to Draft buttons. These are the buttons on the top right corner. I found an example on how to add buttons that ties them to a sidebar in the WordPress Gutenberg handbook. Here […]

Categories
CMS Mastering Development Wordpress

Add button next to Switch to Draft, Publish, Preview in Gutenberg

I’m trying to add a button to the edit-post-header__settings layer in the Gutenberg editor, the one that contains the Preview, Publish, Switch to Draft buttons. These are the buttons on the top right corner. I found an example on how to add buttons that ties them to a sidebar in the WordPress Gutenberg handbook. Here […]

Categories
CMS Development Wordpress

Looping inside block return

I have a custom block that allows me to choose a color. This is how the block’s return function looks: return ( el( ‘div’, { }, el( ‘div’, { }, el( ColorPalette, { value: props.attributes.paletteData[0], onChange: updatePalette, } ) ) ) ); At the moment it shows a single color picker. However I would like […]