How to disable Gutenberg / block editor for certain post types?

It’s possible to simply disable the editor using a WordPress filter. WordPress 5 and Higher If you want to disable the block editor only for your own post types, you can add following code into your plugin or functions.php file of your theme. [php]add_filter(‘use_block_editor_for_post_type’, ‘prefix_disable_gutenberg’, 10, 2); function prefix_disable_gutenberg($current_status, $post_type) { // Use your post type key … Read more

How to Remove Gutenberg CSS

ou need to remove the -css when trying to dequeue the script. That’s added to the HTML markup and not the actual tag for the css file. If you search the code (the location of the enqueue may change as Gutenberg gets rolled into core), you can find: [php]wp_enqueue_style( ‘wp-block-library’ )[/php] As you can see, there is … Read more