How to disable Gutenberg editor in WordPress

888u

Last update at :2024-03-20,Edit by888u

After WordPress is updated to version 5.0, the default editor used when writing articles is Gutenberg (Chinese name Gutenberg Editor). Compared with the classic editor, the changes in the Gutenberg Editor are still very large. Anyway, I have never been used to using this site, so today I will share two ways to disable the Gutenberg editor in WordPress.

To put it simply, we can switch from the Gutenberg editor back to the classic editor through coding and installing plug-ins. Here is an introduction.

1. Install the classic editor plug-in

Plug-in address: Classic Editor

Search for Classic Editor directly in the WordPress plug-in background and install it:

As shown in the picture above, more than 5 million users have installed this plug-in, and it is also an officially certified plug-in by WordPress. Therefore, it is recommended that you use this method to enable the WordPress classic editor.

2. Add code to disable Gutenberg editor

If you do not want to install the plug-in, you can also disable the Gutenberg editor by adding the following code to functions.php:

//Wordpress 5.0+ disables the Gutenberg editor add_filter('use_block_editor_for_post', '__return_false'); remove_action( 'wp_enqueue_scripts', 'wp_common_block_scripts_and_styles' );

Recommended site search: US vps host, Hong Kong cloud server, station group server rental, registration information, pw domain name Henan registration, anti-complaint server, server, Foshan high-defense server, foreign domain name,

How to disable Gutenberg editor in WordPress

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码