Block Editor – WordPress 6.1 – CPT Archive Issue – While the title changes in the loop, all records display the same data
Block Editor – WordPress 6.1 – CPT Archive Issue – While the title changes in the loop, all records display the same data
Block Editor – WordPress 6.1 – CPT Archive Issue – While the title changes in the loop, all records display the same data
Ok so I don’t feel very good about this solution, but – using the render_block hook: conditional to find the custom block set the $block_content variable=””; to clear it (or if you want to nest something inside tags, you can try to explode $block_content) loop through each child block and pull out the innerHTML, append … Read more
How to add a class to a core block in both admin editor and frontend?
The trouble is that they ‘enqueue_block_assets’ is not the right hook to use for conditional resources anyway. The correct hook to use for the backend is : add_editor_style( ‘path/to/my-core-style-overrides.css’), which should be inside ‘after_setup_theme’ hook. This will ensure that these styles are incorporated in the admin editor iframe only and in all places where that … Read more
The Core script has no API surface to modify those tabs. The tabs are rendered by InspectorControlsTabs: export default function InspectorControlsTabs( { blockName, clientId, hasBlockStyles, tabs, } ) { // The tabs panel will mount before fills are rendered to the list view // slot. This means the list view tab isn’t initially included in … Read more
Registering a custom block style
Custom gutenberg block: window.wp.blockEditor returns undefined
Disable block editor pre-publish sidebar for custom post type
Default value for highorder component in Gutenbrg?
Adding features to Gutenberg without theme.json