How to switch back to classic gadget mode in WordPress 5.8

2 minutes
three hundred and fifty-seven
zero
 How to switch back to classic gadget mode in WordPress 5.8

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.
This article is written by: Chief Editor Published on Software Development of Little Turkey , please indicate the source for reprinting: //hongchengtech.cn/blog/76.html
Kuke_WP editor
author

Related recommendations

One year ago (2023-11-11)

How does WordPress set WeChat login of social login interface configuration

WeChat login is a built-in function of our Cool Theme Themer framework. Through this function, users can directly log in and register through their microblog account, reducing the registration and login process. At present, the theme supports WeChat public account login (mainly for WeChat built-in browser on mobile end) and WeChat open platform login (mainly for PC end). According to the rules of WeChat, there are currently two platforms
four hundred and eighty-one
zero
One year ago (2023-11-09)

How to turn off the automatic generation of image thumbnail function of wordpress

Often, when writing an article, we will insert a picture, or upload a picture as a feature picture. Careful friends may find that there are three sizes of images in the upload folder. Why is this? In fact, it is automatically generated by WordPress when you upload pictures. The most direct disadvantage of doing this is to occupy
three hundred and eighty-seven
zero
One year ago (2023-11-07)

How to use the secondary domain name of wordpress website to store media library pictures

The reason for this article is mainly because the cool theme editor has made some WP stations inconvenient to use Tencent Cloud COS to store special fee soft coins and move to download, so today let me teach you how to set your own domain name to store media library pictures! If you want to better manage the pictures of WordPress website, you can customize and modify them
five hundred and four
zero
One year ago (2023-11-07)

How to modify the default login registration page of WordPress?

Many themes Baba customers will find that the login registration page presented by the website is different from that of the demo website after installing the theme. So what should we do? In fact, it is very simple. You only need to install a free login and registration plug-in. Solution: Go to the WP background - Plug in - Install Plug in - Search Plug in: wechat social
three hundred and twenty-eight
zero
One year ago (2023-11-07)

WordPress performance optimization: let your WP website fly!

Recently, many users have found that the official website and demo website of Cool Theme have a faster access speed. Most of the time, they click it every second. They would like to know how we do it. In fact, Cool Theme has also experienced a difficult process of slow website speed and insufficient server resources. Later, a complete set of Wo
three hundred and sixty-five
zero
One year ago (2023-11-07)

Cool Theme Launches One click Import WordPress Theme Demo Data Function

Recently, we added a very practical function to all WordPress themes of Cool Theme: one click import of demo data. This function is very suitable for newly installed WordPress websites. After importing data, we can set the website as our demo website, which is very convenient for learning and understanding various operations of WordPress and themes
three hundred and five
zero

comment

0 people have participated in the review

Scan code to add WeChat

contact us

WeChat: Kuzhuti
Online consultation: