Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1313720

    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

    #1314051

    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

    #1314697

    I did insert it into my child function.php file and it worked. Thank you

    #1314964

    Hi Parisfairgrounds,

    Great, I’m glad that you got it working. The same code is included in the latest version of the theme, so you can try updating to that as well, and remove the code I posted above.

    Best regards,
    Rikard

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.