Questions that are too localized (such as syntax errors, code with restricted access, hacked sites, hosting or support issues) are not in scope. See how do I ask a good question?
Closed 5 years ago.
Improve this questionI have come accross a bit of a problem when converting a theme to gutenberg - I have done this plenty of times before and never come accross this issue. Having added the relevant theme support e.g.
add_theme_support( 'responsive-embeds' );
add_theme_support( 'wp-block-styles' );
add_theme_support( 'align-wide' );
add_editor_style( 'css/editor-style.css' );
add_theme_support( 'editor-styles' );
I can see the block styles in the editor for the most part but it also has this error :
I am using the Block Unit Test before converting the rest of the pages but I need to sort this error first...
There are no styles or classes being added to the blocks on the front end Blocks that are affected : Images H1 Headings Blockquotes Images Pull quotes and a few others
Anyone any ideas?
Closed. This question is off-topic. It is not currently accepting answers.Questions that are too localized (such as syntax errors, code with restricted access, hacked sites, hosting or support issues) are not in scope. See how do I ask a good question?
Closed 5 years ago.
Improve this questionI have come accross a bit of a problem when converting a theme to gutenberg - I have done this plenty of times before and never come accross this issue. Having added the relevant theme support e.g.
add_theme_support( 'responsive-embeds' );
add_theme_support( 'wp-block-styles' );
add_theme_support( 'align-wide' );
add_editor_style( 'css/editor-style.css' );
add_theme_support( 'editor-styles' );
I can see the block styles in the editor for the most part but it also has this error :
I am using the Block Unit Test before converting the rest of the pages but I need to sort this error first...
There are no styles or classes being added to the blocks on the front end Blocks that are affected : Images H1 Headings Blockquotes Images Pull quotes and a few others
Anyone any ideas?
Share Improve this question asked Aug 31, 2019 at 22:14 Jaimee PageJaimee Page 761 silver badge6 bronze badges 2- to elaborate on the issue for example the Heading 1 block doesn't display front end with <h1> tags its just text but the rest of the headings display fine – Jaimee Page Commented Aug 31, 2019 at 22:39
- The issue seems to be with the JavaScript of those saved blocks. When the editor loads, it reads the content HTML, recognizes a certain block and tries to find its JavaScript block type registration. So either the plugin that loads that JS is missing (you need to add the plugin that register those block types) or the content from those blocks is not valid. – Alvaro Commented Sep 1, 2019 at 14:43
1 Answer
Reset to default 0SOLVED -- it was a plugin conflict from a very old custom plugin that was on there - turns out its key to the build of the site though so time to figure out which part of the plugin is conflicting