Logo

dev-resources.site

for different kinds of informations.

2 easy ways disable Gutenberg editor in WordPress

Published at
5/12/2024
Categories
wordpress
gutenberg
plugins
webdev
Author
almazbisenbaev
Author
14 person written this
almazbisenbaev
open
2 easy ways disable Gutenberg editor in WordPress

Gutenberg, the new editor that was introduced into WordPress since version 5.0 has a lot of cool features. But it in some cases, when you don’t actually need it, it still bloats your website with unused CSS and JS.

Here are the two easy ways to disable Gutenberg:

By pasting this PHP code into your functions.php:

// Disable Gutenberg on the back end
add_filter( 'use_block_editor_for_post', '__return_false' );

// Disable Gutenberg for widgets
add_filter( 'use_widgets_block_editor', '__return_false' );

add_action( 'wp_enqueue_scripts', function() {

    // Remove CSS on the front end
    wp_dequeue_style( 'wp-block-library' );

    // Remove Gutenberg theme
    wp_dequeue_style( 'wp-block-library-theme' );

    // Remove inline global CSS on the front end
    wp_dequeue_style( 'global-styles' );

    // Remove classic-themes CSS for backwards compatibility for button blocks
    wp_dequeue_style( 'classic-theme-styles' );

}, 20 );
Enter fullscreen mode Exit fullscreen mode

Using PowerTools

PowerTools is a free WordPress plugin that is aimed to improve your productivity by solving some of the tasks that you encounter when building a website. I created it for myself and published the souce code on GitHub.

It allows you to disable Gutenberg just by ticking one checkbox:

Gutenberg Disabler tool in PowerTools

All you need to do is download the plugin from GitHub, install it and find Gutenberg Disabler in the list of the tools that the plugin features.

It’s that easy!

plugins Article's
30 articles in total
Favicon
How to Track Plugins on WordPress.org?
Favicon
Protecting Applications with Kong security plugins and using StatsD to monitor system states β€” A healthy camera story
Favicon
SimpleTimepickerRB: A Lightweight and Customizable Timepicker Plugin for jQuery
Favicon
Top 15 WordPress Plugins to Boost Website Speed and Performance in 2025
Favicon
Mastering ChatGPT Plugins: Unleashing the Full Potential of AI
Favicon
The Net Worth of Celebrities: A Glimpse into Wealth
Favicon
Top 5 Neovim Repositories in this Week
Favicon
Guide to Adding Plugins to Apache Answer
Favicon
I Made A Plugin To Update Godot From Within The Editor
Favicon
Going from Godot 3 to 4 (The Easy Way)
Favicon
Empowering Project Management With Top Gantt Chart Plugins for JIRA
Favicon
5 helpful plugins for IntelliJ IDEA: Enhance your Spring Boot and Java development experience
Favicon
Free Download Astra Premium Sites Plugin
Favicon
Auto suggest vscode plugins for your team through the settings in your repo.
Favicon
2 easy ways disable Gutenberg editor in WordPress
Favicon
How to Create an Application to Determine the Palette and Dominant Colors of an Image
Favicon
The Easy Way to Develop Your Own Apple Metal Plugin and Integrate It into Davinci Resolve
Favicon
All Time Best Figma Plugins
Favicon
8 Plugins You Should Add To Your IDE And Why
Favicon
Top 10 VEGAS Pro AI Plugins to Enhance Your Workflow
Favicon
Best VS Code Extensions for web developers
Favicon
Hot reload setup for Obsidian plugin development
Favicon
Top 10 WordPress Plugins for Video Conferencing: A Comprehensive Guide
Favicon
My must have WordPress plugins for 2024
Favicon
14+ Best Photoshop AI-Powered Plugins - (Half are Free)
Favicon
Why do I always have to start from scratch?
Favicon
Essential Ten Plugins for a Successful Blog
Favicon
Anotando: Plugins da comunidade que utilizo no Obsidian
Favicon
Creating Custom User Columns: A Step-by-Step Guide with User Column Manager
Favicon
Anotando: Plugins embutidos que utilizo no Obsidian

Featured ones: