How to register multiple blocks
I had a console error Uncaught ReferenceError: __ is not defined. I believe this is a string translation function in WordPress. I removed references to this and the blocks are available now.
I had a console error Uncaught ReferenceError: __ is not defined. I believe this is a string translation function in WordPress. I removed references to this and the blocks are available now.
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.
Is it possible to consume context from a parent block and update it from within a child block?
How to condition appearance of a gutenberg block via wp_is_mobile
So it’s duct tape solution but it does what I need. Posting here my solution for the future me or the new generation. Need to add a delay and wait until the feature image where be added to the page. if ( is_admin() ) { function admin_editor_scripts() { $script = ” jQuery( window ).on(‘load’, function() … Read more
Block Theme Template parts – Why saving a part updates the other ones?
WordPress – Increase number of posts in “Add Link” dialogue
Gutenberg: Issue trying to commit locally
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
How do I reinstate the “Add Block” feature that changes with the update?