After upgrading to WordPress version 5 or above, the default editor is updated to the Gutenberg editor. For long-time users, it might feel unfamiliar to use, so this article sharesmethods to disable the new Gutenberg editor in WordPress.
How to Disable the WordPress Gutenberg Editor
The Simplest Method: Using a Plugin
Directly from the WordPress Admin Dashboard, go to Plugins, Add New, search for „Classic Widgets" (called Classic Editor in Chinese), install and activate it.

Or search for „Disable Gutenberg", installing this plugin can also disable the Gutenberg editor.

The More Complex Method: Using Code
Using code to disable it might be a bit troublesome for beginners, and improper operation can cause website errors. Therefore, beginners are not advised to use code directly. If you must use code, you can also consider using theCode Snippetsplugin to implement it.
Add the following code to your theme's functions.php file (in WP Admin, go to Appearance, then Theme File Editor):

// 禁用古腾堡编辑器并启用经典编辑器
add_filter('use_block_editor_for_post', '__return_false', 10);
add_filter('use_block_editor_for_post_type', '__return_false', 10);Copy and paste the above code to the end of the functions.php file, then save it.
If you want to completely disable the Gutenberg editor, use the following code:
// 完全禁用古腾堡编辑器
add_action('wp_enqueue_scripts', 'disable_gutenberg', 100);
function disable_gutenberg() {
wp_dequeue_style('wp-block-library');
wp_dequeue_style('wp-block-library-theme');
wp_dequeue_style('wc-block-style');
}A Safer Method Than Modifying Code: Editing the wp-config.php File
Modifying the theme's functions file is relatively more complicated for beginners. If you know how to edit the wp-config.php file, you can also add the following code into the wp-config.php file.
// 禁用古腾堡编辑器
define('DISALLOW_FILE_EDIT', true);
define('DISALLOW_FILE_MODS', true);Editing the wp-config.php file requires using the server's file manager. If you don't know how, it's still recommended to use a plugin to disable it.
How to Use the New Gutenberg Editor
The Gutenberg editor is a block editor. The development goal of Gutenberg is to make adding and editing rich text content simpler and more enjoyable for users.
Simply put, content written in Gutenberg is composed of blocks. You can drag and drop their positions freely. For example, if you want to swap the first and third paragraphs of your post, you just need to drag the block of the third paragraph above the first one.
Another advantage is that inserting HTML code or other elements is more convenient in Gutenberg compared to the old editor. See the details in the image below.


The new editor comes with a wide variety of built-in blocks, allowing you to easily insert the effects you want.
For example, setting the background color for a specific paragraph.

The Gutenberg editor also makes it easy to insert columns, which was difficult to achieve in the old editor.

In summary, if you are starting a new website, you can consider using the Gutenberg editor to write posts from the beginning. Once you get used to it, you will find it quite convenient.
Related articles:

Comments are closed
The comment function for this article is closed. If you have any questions, please feel free to contact us through other channels.