How to enable Gutenberg Block Editor on taxonomy term pages?

As mentioned in the comments, it isn’t currently supported, although there is an open issue for exactly this feature: https://github.com/WordPress/gutenberg/issues/17099 Meanwhile, I can think of a couple of ways to achieve the same effect: 1) Pages + custom rewrites As you suggested in your question, you could create a set of parallel pages with the … Read more

How does the Gutenberg mobile/tablet/desktop preview work with media queries?

I investigated the states set using React Dev Tools and found the preview modes are set under the deviceType key. Went through the Gutenberg source and came across the __experimentalGetPreviewDeviceType function. /** * Returns the current deviceType. */ const { deviceType } = useSelect( select => { const { __experimentalGetPreviewDeviceType } = select( ‘core/edit-post’ ); … Read more

Your site doesn’t include support for the block… after registering a block

The js-file is not executed on time By the time the DOM load event is executed the block editor has already parsed the post content and at that time the block wasn’t yet registered so it tells you that it doesn’t exist. Instead of: window.addEventListener( ‘load’, () => { mcm_register_menu_card_section_block(); }); try: wp.domReady(mcm_register_menu_card_section_block); and in … Read more