Cannot enable Gutenberg editor [closed]

The block editor (formerly known as Gutenberg) is the default editor. You should not need to install the plugin or choose an option to make it the default. The plugin is now just for following and testing future developments, and the Settings > Writing option only appears if you’re using the Classic Editor plugin. The … Read more

Gutenberg Block language translation does not work

only the JS file translation does not work It’s most likely because WordPress couldn’t find your translation file, which should be in a valid JED format, like so: { “domain”: “my-text-domain”, “locale_data”: { “my-text-domain”: { “”: { “domain”: “my-text-domain”, “plural-forms”: “n != 1”, “lang”: “en-us” }, “Shortcode Title”: [ “Shortcode Title translated” ], “Display it?”: … Read more

Is it possible (safe) to create custom blocks using ES Next format?

Whatever issues you had that caused a block to be “killed” after editing was entirely unrelated to the two different methods of writing the block that you have outlined. Building a custom block using the following method (https://github.com/WordPress/gutenberg-examples/blob/master/03-editable/block.js) of attributes with the –es5 flag appears to be more stable in terms of backwards compatibility. If … Read more

Block background color not appearing on site

If you’re adding theme support for editor-color-palette then you need to add styles for those colours to your stylesheet. As documented: Themes are responsible for creating the classes that apply the colors in different contexts. Core blocks use “color” and “background-color” contexts. So to correctly apply “strong magenta” to all contexts of core blocks a … Read more

WordPress block editor embeds not working in theme (single.php)

That would be because they’re using oEmbed, not a shortcode. You should use the function the_content() to render the content of a post, as it applies all the things required to make embeds, shortcodes, etc work properly. If for some reason that’s not an option, you can apply the content filter. <?php echo apply_filters( ‘the_content’, … Read more

Block Controls not showing

Your edit function is just missing a [ and ], i.e. you forgot to actually return an array, like so: return ([ // add that [ <InspectorControls key=”lx-authors-block-setting” style={ { marginBottom:’40px’} }> … </InspectorControls>, <div className=”lx-authors-block wp-block” key=”container” style={{ backgroundColor: attributes.bgColor}}> … </div> ]); // and add that ] Or you could instead wrap the … Read more