Why am I getting the error: Cannot update a component (`Unknown`) while rendering a different component (`Edit`)?
Why am I getting the error: Cannot update a component (`Unknown`) while rendering a different component (`Edit`)?
Why am I getting the error: Cannot update a component (`Unknown`) while rendering a different component (`Edit`)?
yes you can remove those options via theme.json but it has to be done block by block. This might help you (not my course): https://wpdevelopment.courses/articles/block-editor-typography-settings/#disable-font-size-controls
How do I include and iframe in a Custom Block?
ServerSideRender not rendering in block editor, but output is in “apiFetch”
I finally solved it like this: var registerPlugin = wp.plugins.registerPlugin; var PluginDocumentSettingPanel = wp.editPost.PluginDocumentSettingPanel; var Button = wp.components.Button; var el = wp.element.createElement; var __ = wp.i18n.__; function onButtonClick() { alert( ‘Button is clicked’ ); } function MyDocumentSettingPlugin() { return el( PluginDocumentSettingPanel, { name: ‘my-document-setting-plugin’, title: ‘My Panel’, icon: ‘dashicon-name’, }, __( ‘My Document Setting Panel … Read more
Gutenberg selecting child blocks directly from appender
You aren’t defining any defaults in your registerBlockType […] attributes: { content: { type: ‘string’, default: ‘I am a string’, }, }, […] Worth noting also that the attributes will only get saved in your final markup once they have a value – it won’t save the defaults in the content.
Okay, I figured it out! First, I created a rest endpoint in PHP. https://github.com/bbuilds/ih-top-nurses-block/blob/main/inc/rest.php#L11 The rest point has optional parameters using regex and then in the register_rest_route() callback builds a fetch URL depending on the parameters passed to the WP-REST endpoint. It then fires to the external API wp_remote_get($fetch_url) and dumps the data into the … Read more
Indenting within a blockquote
Embedding Password Protected (Private) “Blog Posts” BLOCK that shows Images and Excerpts on Password Protected Page (not the home page)