wordpress

Enable Classic Widget in WordPress in 2022

I am used to classic widgets and classic editors in WordPress. When a new update of WordPress came, it came with a block editor and widget.
This made my work a bit confusing and found a solution to change from the block editor to a classic editor.

Step 1: First of all go to your dashboard and on the left side of the panel hover your mouse on Appearance.


Step 2: Click on Theme File Editor.

Step 3: You might be given a warning that changing the files might crash your website. If you are not familiar with WordPress codes please don’t mess up other code.

Step 4: On the right side of the Themes file list select and click functions.php.

Step 5: In the file right after <?php past the following code

  // Disables the block editor from managing widgets in the Gutenberg plugin. the classic editor only
add_filter( 'gutenberg_use_widgets_block_editor', '__return_false' );
// Disables the block editor from managing widgets.
add_filter( 'use_widgets_block_editor', '__return_false' );

 

Step 6: After pasting this code click on Update files. Your file will be updated.

Now If you go to the widgets section you will see the classic widget and the block widget will be gone.
Hola! these are the simple steps that can save your time.

jaminrai

Recent Posts

Skype Closes Its Doors After 20 Years: A Look Back and the Apps That Faded with It

After 20 years of transforming global communication, Skype has officially ceased operations. Microsoft, which purchased…

3 months ago

The Duck and the Tortoise: A Tale of Patience and Teamwork

In a serene forest by the edge of a sparkling lake, there lived a cheerful…

4 months ago

10 Smart Strategies for a Secure and Enjoyable Retirement

Retiring comfortably is a goal many aspire to achieve, and with the right strategies, it’s…

4 months ago

Troubleshooting a Slow Computer

Is your computer running frustratingly slow? Don't worry; you're not alone in facing this common…

4 months ago

The Clever Fox and the Greedy Crow

Once, in a sunny forest, Fox and Crow were friends. One day, Crow found a…

4 months ago