How to add_editor_style for both tinyMCE and Gutenberg
You need to call add_theme_support( ‘editor-styles’ ) in the after_setup_theme hook. More information
You need to call add_theme_support( ‘editor-styles’ ) in the after_setup_theme hook. More information
Is it possible to alter or replace the onChange function of an input within the InspectorControls panel?
Apply Blog Home layout to Pages
I was able to solve my problem using __experimentalLabel. It allowed me to customize how the block appears in the List View, similar to the behavior in the core/image block.
Create a Query Loop block
It works without any problems for me. It looks like something (a plugin or theme) is using the same classes, which is overriding your CSS classes. Try wrapping your classes or update the classnames for testing. .xyz-sidebar { grid-area: sidebar; } .xyz-content { grid-area: content; } .xyz-header { grid-area: header; } .xyz-wrapper { display: grid; … Read more
This won’t work as you expect it, PHP is intended for server rendered blocks, it isn’t aware of the editor context unless it’s told the context. But to do that you need to read it in and pass it to the component on the JS side, and then read it in again on the PHP … Read more
How to edit a pattern per post while preventing Gutenberg from overwriting part of my HTML code
Can you post your js or try this? import { addFilter } from ‘@wordpress/hooks’; addFilter( ‘editor.PostStatus.statuses’, ‘sq/add-custom-post-status’, // custom filter name (statuses) => { return [ …statuses, // save old statuses { // add new status slug: ‘prepare’, label: ‘Prepare’, labelShort: ‘Prepare’, public: false, }, ]; } );
Fully working Edit.js but loads of render.php debugging