However, there will still be many users who are not very receptive to the editing interface of the new block gadget and are still used to the classic gadget mode. Here are two ways to switch back to the classic gadget.
1、 Install classic gadget plug-in switch
The official should have considered this problem, so a plug-in has also been launched for this update: classic gadget( Classic Widgets ), install the plug-in to switch to the classic interface.
Installation method: background search plug-in name“ Classic Widgets ”Or download and install on the official website: //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 the theme/plug-in author and want to implement this function for your own theme or plug-in, you can do so through the following code:
//Toggle Classic Widgets 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 topic functions.php
The end of the file.
reminder: Cool theme pay WordPress The theme has been added by default. This code switches to the classic gadget mode, and there is no need to add another code.