How to Disable Gutenberg and Its CSS Without Using a Plugin

Gutenberg is the default editor in WordPress since version 5.0. It lets you create content with blocks, but for many people, it’s not easy to use — especially when writing blog posts. If you like the old editor better, or if you want to remove extra styles from your site, this guide will help you turn off Gutenberg and its CSS without using a plugin.
Author:
|
CTO of
Quanta Digital Agency
Published
If you'd like someone to take care of your marketing, I'm here to help, Click Here

Disable Gutenberg editor

To disable Gutenberg, add the following code to your functions.php file:

// Disable Gutenberg editor for all post types

add_filter('use_block_editor_for_post_type', 'disable_gutenberg_for_all_post_types', 10, 2);
function disable_gutenberg_for_all_post_types($use_block_editor, $post_type) {
    return false;
}

Disable Gutenberg’s default styles

If you also want to disable Gutenberg’s default styles, add the following code to your functions.php file:

// Remove Gutenberg-related styles from frontend

function remove_gutenberg_styles_from_frontend() {
    wp_dequeue_style('wp-block-library');
    wp_dequeue_style('wp-block-library-theme');
    wp_dequeue_style('wc-block-style'); 
}
add_action('wp_enqueue_scripts', 'remove_gutenberg_styles_from_frontend', 100);

Leave a Reply

Your email address will not be published. Required fields are marked *

Practical Web Tutorials for WordPress Designers, Developers & SEO Experts on My YouTube Channel
Do you want
 more traffic from Google?

About Peyman Farahani

Peyman Farahani is CTO of Quanta Digital Agency

As a digital problem-solver with a focus on SEO, WordPress, and performance-first design, I’ve helped clients achieve real digital results.

I connect creativity with execution — exploring market gaps, shaping clear ideas, and building solutions that actually make an impact.