Home > Dev > WordPress Interface > Disabling Gutenberg Editor

Disabling Gutenberg Editor

This code will disable the Gutenberg editor and revert to the classic editor.

// Add this to your theme's functions.php file

add_filter('use_block_editor_for_post', '__return_false', 10);
add_action('wp_enqueue_scripts', function() {
    wp_dequeue_style('wp-block-library');
    wp_dequeue_style('wp-block-library-theme');
    wp_dequeue_style('wc-block-style');
});
Back