Hi
When I go to Appearance > Widgets, I see error messages like “The “avia_fb_likebox” block was affected by errors and may not function properly. Check the developer tools for more details.”
How do I fix this?
Thanks
Hey Maxim,
Please try this in your functions.php file:
/**
* With WP 5.8 block editor was introduced to widget page. This is currently not supported by Enfold.
* Based on https://wordpress.org/plugins/classic-widgets/ we disable this feature.
*
* If you want to use the new widget page and use a child theme add in functions.php of the child theme:
*
* $avia_config['use_block_widget_page'] = true;
*
* @since 4.8.4.1
*/
if( ! isset( $avia_config['use_block_widget_page'] ) || $avia_config['use_block_widget_page'] !== true )
{
// Disables the block editor from managing widgets in the Gutenberg plugin.
add_filter( 'gutenberg_use_widgets_block_editor', '__return_false' );
// Disables the block editor from managing widgets.
add_filter( 'use_widgets_block_editor', '__return_false' );
}
Or try installing this plugin: https://wordpress.org/plugins/classic-widgets/
Best regards,
Rikard
I did insert it into my child function.php file and it worked. Thank you