• Guides

How To Disable Gutenberg with No Plugin

How To Disable Gutenberg with No Plugin

Gutenberg is WordPress’s attempt at a built-in page builder. It’s okay for websites running on basic themes with no custom functionality, but when it comes to a custom website or theme with bespoke features, things can go downhill and cause the pages using the functionality to become ill-formatted and poorly structured.

Gutenberg can also look a little daunting for new users. Luckily, it’s quite easy to disable with a few lines of PHP.

Simply add this block of code to your functions.php file and you will be rolled back to the default editor:

// disable for posts
add_filter('use_block_editor_for_post', '__return_false', 10);

// disable for post types
add_filter('use_block_editor_for_post_type', '__return_false', 10);

Expand Your Services
and Boost Agency Revenue

Start within 5 days
Bespoke onboarding process
5 / 5
From 10+ Google Reviews