it brings back the GB blocks.
There was a function that called a JS which disabled GB in the post post type:
add_action( 'enqueue_block_editor_assets', 'gpc_gutenberg_scripts' );
function gpc_gutenberg_scripts() {
// Load editor scripts for all post types
wp_enqueue_script( 'gpc-editor', get_stylesheet_directory_uri() . '/admin/js/editor.js', array( 'wp-blocks', 'wp-dom' ), GPC_VERSION, true );
// Load editor scripts for specific post types
global $current_screen;
if ( $current_screen->post_type == 'post' ) {
wp_enqueue_script( 'gpc-editor-post', get_stylesheet_directory_uri() . '/admin/js/editor-post.js', array( 'wp-blocks', 'wp-dom' ), GPC_VERSION, true );
}
}
Thanks David for pointing me in that direction.
Dan