Last update at :2024-06-01,Edit by888u
Recently, WordPress released the latest version 5.8. After this update, the widget settings page in the background has been newly upgraded to the block widget mode, which is very similar to the new version of the article block editor mode, and the available blocks are almost the same as those of articles. It is reusable. It is not difficult to see the official determination of WordPress to promote visual full-site editing.
However, there are still many users who are not very accepting of the new block widget editing interface and are still used to the previous classic widget mode. So here are two ways to switch back to classic widgets.
1. Install the classic gadget plug-in switch
The official should have considered this issue, so a plug-in has been launched for this update: Classic Widgets. You can switch to the classic interface by installing the plug-in.
Installation method: Search the plug-in name "Classic Widgets" in the background or download and install it from the official website: https://cn.wordpress.org/plugins/classic-widgets/
2. Add code to implement switching
If you do not want to install plug-ins, or if you are a theme/plug-in author and want to implement this feature for your own themes or plug-ins, you can do so through the following code:
// Switch to classic gadgets
add_filter( 'gutenberg_use_widgets_block_editor', '__return_false' );
add_filter( 'use_widgets_block_editor', '__return_false' );
The above code can be added to the end of the theme's functions.php
file.
Recommended site search: server, US server URL, domain name registration process, high-defense server rental, Korean server recommendation, US server and Japanese server private server rental, expired registered domain name query, domain name purchase, virtual host,
发表评论