Hide title block on edit screen in Gutenberg
Hide title block on edit screen in Gutenberg
Hide title block on edit screen in Gutenberg
Using the block theme in production
Update Content for a Custom Block Toolbar Button
How do I save meta key value in the save function?
Add a class to img of core/cover block
This seems to be the no-shadow rule. The problem is that it doesn’t like that you have defined two variables with the same name: isSavingNonPostEntityChanges (see code comments below). const { isSaving, isSavingNonPostEntityChanges } = useSelect((select) => { // <– here const { isSavingPost, isSavingNonPostEntityChanges } = select(editorStore); // <– and here return { isSaving: … Read more
No, there’s no way to remove that div from the RadioControl component. You can see in the source for the component that there are no options that will control whether that div is rendered. It will always be rendered when using that particular component. Depending on what you actually need to do you could just … Read more
In WordPress 6.1 list items are now their own blocks, so you will need to add core/list-item to the list of allowed blocks.
You would need a combination of JavaScript for the custom block, and CSS to make the H1 span across both columns. The JavaScript would be like this: registerBlockType(‘my-plugin/two-columns’, { title: ‘Two Columns’, icon: ‘screenoptions’, category: ‘common’, attributes: { title: { type: ‘string’, }, imageUrl: { type: ‘string’, }, }, edit({ attributes, setAttributes }) { const … Read more
The template option has been moved here in WordPress 6.1: