Select Page

How to Disable Gutenberg in WordPress: Every Method

Posted onOctober 8, 2019

So, you wanna know how to disable the Gutenberg in WordPress. But, at first “What is Gutenberg”? Gutenberg is a brand new editor for the WordPress platform officially launched back on 6th December 2018 in WordPress 5.0. It’s replaced the default classic editor of WordPress and gives you block editing experience. It will radically change the way you create your pages, posts, products, etc on your WordPress site. It’s a simple to use Block Editor for creating just everything in your WordPress site. However, it’s simple to use Block Editor to create everything easily on WordPress some peoples doesn’t like it or they just don’t feel comfortable to use it. So here it’s How to Disable Gutenberg in WordPress: Every Method. In this article, you will found each and every method to disable Gutenberg in WordPress from with Plugins to don’t even using any Plugin.

Method 1. Disable Gutenberg using Plugin

This method is one of the easiest method out there. For this method, you can simply install any Gutenberg Disable Plugin from the WordPress Plugin Store and activate it. For this example, we are gonna use the Classic Editor Plugin. First thing you need to do is install the Classic Editor Plugin and activate it.

Classic Editor

The Plugin just works out of a box, and it will disable the Gutenberg editor upon activation.

This plugin also gives you an option to keep both Gutenberg and the Classic editor at the same time. You can configure this in the plugin’s setting. Just simply go to Settings » Writing page in your WordPress admin area. You will see the option to configure this under “Default editor for all users”. There you will be able to select either Classic Editor or the Block Editor(Gutenberg).

Default Editor

Don’t forget to click on the Save Changes button after you selected the editor to store your changes.

After that, if Allow users to switch editors is set to no, then your default editor will set to the editor you selected and it will be used when you create new posts, pages, or edit them.

If you set Allow users to switch editors to Yes, then you are able to select the editor when you edit your posts or pages. When you create a new post or page it will use the default editor you set.

Switch Editors

As you see this method is one of the easiest method. There are so many plugins available that you can use to disable the Gutenberg. Now we will move to our next method.

Method 2. Disable Gutenberg with Code

You can also disable the Gutenberg by adding code to your WordPress files. There are more than 1 ways to do that you can simply follow any of the 1 Option below and disable the Gutenberg.

For this method, you need to be very careful, if you do anything wrong you can break your whole site, we recommend you to use this method if you are comfortable editing the code and have some knowledge about basic coding.

First thing you need to do this is to access the directory where you install WordPress, there are different methods for accessing it on different hosts. For 2 common type of hosts, you can follow the below steps.

1: If you are using web hosting from GoDaddy, HostGator, NameCheap, etc, they come with cPanel or Control Panel, you can access the cPanel, then go to the File Manager.

cPanel demo

In file manager you can see the public_html directory most of the times your site’s files are stored there, open the public_html directory and follow any 1 of the options from below.

public html

2: Or if you are hosted your site on VPS like Linode, Digital Ocean, Vultr, etc, you need to access your FTP. You can do this by using any FTP client, we recommend you to use Filezilla. You need to enter your server IP, Username, Password, and Port(usually use 22 in this) and click on Quickconnect.

Filezilla

Option 1 – wp-config.php File

01
add_filter{'use_block_editor_for_post', '__return_false', 10 };

You need to add the above line of code in your site’s wp-config.php file. It’s located in the root directory of your site where you installed WordPress.

wp-config

After doing that it will disable the Gutenberg and enable the classic editor.

Option 2 – functions.php File

01
add_filter{'use_block_editor_for_post', '__return_false', 10 };

For this option, you need to add the above line of code in your site’s theme’s function.php file. You will find this file in wp-content » themes » ACTIVATED THEME directory.

functions

After doing that it will disable the Gutenberg and enable the classic editor.

There you have all the methods that you can use to disable the Gutenberg in WordPress. I hope you liked this article. Stay tuned with us to get more awesome articles and tutorials. Subscribe to our newsletter to never miss out.

Newsletter