Fix WordPress widget error: block was affected by errors and may not function properly

Share Now

Solution 1: Just use a plugin

Classic Widgets

Solution 2: Add this code to your active themes functions.php file

Add this code to the theme function:

//fix error for widget
add_filter( 'use_widgets_block_editor', '__return_false' );
Picture of Nahid Mahamud

Nahid Mahamud

Web Developer | Graphic Designer | WordPress & Woo-commerce Expert