
Gutenberg block editor snippets: block.json, dynamic blocks, block bindings, variations, filters and patterns.

Register and style your own Gutenberg block styles for the WordPress Heading block, so editors get extra headline looks in the Styles panel.

Turn off the Gutenberg block editor for chosen post types in WordPress and use the classic editor for them, while posts and pages keep blocks.

Register a WordPress Block Bindings source that fills core Paragraph, Heading and Button blocks with a post’s last-updated date and author.

CSS Needs minimum selector Load CSS in Editor Load CSS in Theme (Front End)

Code Snippet Creating a custom webpack configuration file for @WordPress/Scripts Create “webpack.config.js” in the plugn root

As I never menaged to set up WordPress/Scripts –hot I prefer to use Browser Sync Install NPM After instaling NPX Create block run: Then in the package.json update scripts section Replace ‘dev-wordpress.local’ with your local websute URL

Place this in function.php or use Scripts Organizer Code Snippet. We’ll let WordPress think it’s a block theme so the Editor shows up, but we’ll override template loading to use PHP templates like index.php. In your functions.php, override the block template resolution like this: This forces WordPress to always use index.php for rendering the front-end…

Disable the default WordPress core block patterns and the Pattern Directory patterns so the inserter only shows your theme’s own patterns.

Make @wordpress/components on a WordPress plugin settings page look like in the block editor by loading the core component styles on that page only.

Load the CSS of Scripts Organizer CSS or SCSS code blocks into the WordPress Gutenberg editor, so the editor canvas matches your site.
3rd party plugins actions admin archive block-themes block editor Blocks body-class build capabilities core CPT CSS Custom Post custom post types Developer development filters Front End full site editing gutenberg hook Image img load styles maintenance media mu-plugin Must Have npm Oxygen performance php plugins repeater scripts organizer security SEO single product Taxonomy Tips updates WooCommerce wordpress WP Admin