search
HomeCMS TutorialWordPressHow to disable WordPress 5.8 widget block editing mode

WordPress Tutorial: How to disable WordPress 5.8 widget block editing mode?

The official version of WordPress 5.8 is expected to be released on July 20. It is currently Beta 4. In addition to not supporting IE, the biggest change of WordPress 5.8 is that the gadget supports visual block editing mode, as shown in the picture:

How to disable WordPress 5.8 widget block editing mode

I feel the same as when I saw the Gutenberg block editor for the first time. I was a little at a loss and crashing....

If you are not used to this gadget editing mode, WP official Two solutions are provided:

Solution 1, install the Classic Widgets plug-in. See if the name seems familiar. It is the same as the Classic Editor plug-in. Install this plug-in to restore it. Previous gadget editing mode.

Currently, there are only 5 comments on the plug-in. They all say that this plug-in is good. What does that mean? It can only mean that I can’t adapt to this new editor.

In the plug-in, the new editor is only disabled through two lines of code:

add_filter( 'gutenberg_use_widgets_block_editor', '__return_false' );
add_filter( 'use_widgets_block_editor', '__return_false' );

However, to disable the new editor in the theme, the official recommendation is to use option two.

Option 2: Add the following code to the current theme function template functions.php to disable the new gadget block editor.

function example_theme_support() {
remove_theme_support( 'widgets-block-editor' );
}
add_action( 'after_setup_theme', 'example_theme_support' );

I basically never use a block editor to write a web article, and I don’t need such a powerful editing function. Although I spent a lot of time learning to make this block, the currently developed theme does not have an integrated block function. Because at the beginning of the theme development, there was no such editor. The functions implemented by a large number of short codes in the theme were changed to block functions. Perfectly compatible with previous layouts, if WP developers insist on going their own way, the block editor will definitely be a trend, and future theme development will also follow this trend.

As for what other features WordPress 5.8 has updated, it is still the same update content that has lasted for several versions:

Continuously improve the block editor and modify the program to be compatible with it, and there is nothing else.

I found that a small detail of the update is still very convenient. When editing the menu before, you could only delete menu items one by one. This time, a batch selection function is added, but it can only be deleted in batches, not moved in batches.

The gadget supports blocks, which is really good. You can add any existing block in the gadget, including blocks added by many block plug-ins. It can achieve many functions, but the style is not perfectly compatible with the theme. Practicality is an issue.

The widget block editor can realize the background preview widget style. I don’t know how to write this background preview style for the time being...

Look at the official update instructions, even the official WP default theme cannot It is compatible with the new gadget editor. It is estimated that most themes will not be compatible, including mine. There is a problem with the front-end display style.

As for the classic editor, the official has always said that it will persist until 2022. By then, it is hoped that the two editors can coexist and give users a chance to choose, otherwise I believe they will lose many users...

The above is the detailed content of How to disable WordPress 5.8 widget block editing mode. For more information, please follow other related articles on the PHP Chinese website!

Statement
This article is reproduced at:zmingcx. If there is any infringement, please contact admin@php.cn delete
Can I learn WordPress in 3 days?Can I learn WordPress in 3 days?Apr 09, 2025 am 12:16 AM

Can learn WordPress within three days. 1. Master basic knowledge, such as themes, plug-ins, etc. 2. Understand the core functions, including installation and working principles. 3. Learn basic and advanced usage through examples. 4. Understand debugging techniques and performance optimization suggestions.

Is WordPress a CMS?Is WordPress a CMS?Apr 08, 2025 am 12:02 AM

WordPress is a Content Management System (CMS). It provides content management, user management, themes and plug-in capabilities to support the creation and management of website content. Its working principle includes database management, template systems and plug-in architecture, suitable for a variety of needs from blogs to corporate websites.

What is the WordPress good for?What is the WordPress good for?Apr 07, 2025 am 12:06 AM

WordPressisgoodforvirtuallyanywebprojectduetoitsversatilityasaCMS.Itexcelsin:1)user-friendliness,allowingeasywebsitesetup;2)flexibilityandcustomizationwithnumerousthemesandplugins;3)SEOoptimization;and4)strongcommunitysupport,thoughusersmustmanageper

Should I use Wix or WordPress?Should I use Wix or WordPress?Apr 06, 2025 am 12:11 AM

Wix is ​​suitable for users who have no programming experience, and WordPress is suitable for users who want more control and expansion capabilities. 1) Wix provides drag-and-drop editors and rich templates, making it easy to quickly build a website. 2) As an open source CMS, WordPress has a huge community and plug-in ecosystem, supporting in-depth customization and expansion.

How much does WordPress cost?How much does WordPress cost?Apr 05, 2025 am 12:13 AM

WordPress itself is free, but it costs extra to use: 1. WordPress.com offers a package ranging from free to paid, with prices ranging from a few dollars per month to dozens of dollars; 2. WordPress.org requires purchasing a domain name (10-20 US dollars per year) and hosting services (5-50 US dollars per month); 3. Most plug-ins and themes are free, and the paid price ranges from tens to hundreds of dollars; by choosing the right hosting service, using plug-ins and themes reasonably, and regularly maintaining and optimizing, the cost of WordPress can be effectively controlled and optimized.

Is WordPress still free?Is WordPress still free?Apr 04, 2025 am 12:06 AM

The core version of WordPress is free, but other fees may be incurred during use. 1. Domain names and hosting services require payment. 2. Advanced themes and plug-ins may be charged. 3. Professional services and advanced features may be charged.

Is WordPress easy for beginners?Is WordPress easy for beginners?Apr 03, 2025 am 12:02 AM

WordPress is easy for beginners to get started. 1. After logging into the background, the user interface is intuitive and the simple dashboard provides all the necessary function links. 2. Basic operations include creating and editing content. The WYSIWYG editor simplifies content creation. 3. Beginners can expand website functions through plug-ins and themes, and the learning curve exists but can be mastered through practice.

Why would anyone use WordPress?Why would anyone use WordPress?Apr 02, 2025 pm 02:57 PM

People choose to use WordPress because of its power and flexibility. 1) WordPress is an open source CMS with strong ease of use and scalability, suitable for various website needs. 2) It has rich themes and plugins, a huge ecosystem and strong community support. 3) The working principle of WordPress is based on themes, plug-ins and core functions, and uses PHP and MySQL to process data, and supports performance optimization.

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
1 months agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools