Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined

I found that using import { useBlockProps, MediaPlaceholder } from ‘@wordpress/block-editor’; import { TextControl, __experimentalNumberControl as NumberControl } from ‘@wordpress/components’; instead of import { TextControl, NumberControl, MediaPlaceholder } from ‘@wordpress/components’; resolved the problem.

How to get blocks with same heigh in columns?

Finally, I found a solution with flex attributes: I defined the following CSS rules : .flexColumn { display: flex; flex-direction: column; align-self: auto !important; } .flexItem { flex-grow: 1 !important; } I can now apply flexColumn to the columns and flexItem to the items that I want to grow to fill the empty space: For … Read more

Layout Settings in the new Gutenberg editor

For a very basic implementation of adding a text input to add body classes(would also work for adding a second field for post classes if necessary) to pages/posts, you could do the following: Register a custom field with register_post_meta – I’ll use an empty string for the first param, post_type so it applies to all. … Read more