Title: Widget preview problem
Last modified: April 6, 2022

---

# Widget preview problem

 *  [alex6m](https://wordpress.org/support/users/alex6m/)
 * (@alex6m)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/widget-preview-problem/)
 * Hello everyone,
 * I have probleme with the use of widget customize.
    The popup of tarteaucitron
   is displayed on the left panel which lets you customize the widgets. As a result,
   i have to confirm each time the tarteaucitron popup. I mean the choice is not
   saved and the popup is always displayed the next time.
 * Do you have a workaround for this problem ?
 * I tried this functions.php trick :
 *     ```
       add_action('plugins_loaded', 'tarteaucitron_remove_on_admin', 1);
       function tarteaucitron_remove_on_admin() {
   
           if (is_admin()) {
               remove_action('wp_enqueue_scripts', 'tarteaucitron_user_css_js');
               remove_filter('embed_oembed_html', 'tarteaucitronjs_oembed_dataparse', PHP_INT_MAX);
           }
       }
       ```
   
 * Unfortunately, it didn’t work…

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Amauri](https://wordpress.org/support/users/amauric/)
 * (@amauric)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/widget-preview-problem/#post-15535433)
 * Hey
 * When `is_admin()` is true, tarteaucitron is already not loaded.
 * I guess the widget preview is not declared as admin.
 * If you can get an url parameters when this widget is loaded, I’ll be able to 
   update the plugin.
 * For example, fl_builder is supported because on the admin preview there is a `
   fl_builder` parameters.
 *  Thread Starter [alex6m](https://wordpress.org/support/users/alex6m/)
 * (@alex6m)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/widget-preview-problem/#post-15537957)
 * Thanks for your fast reply !
    I tried to understand why it happens just for me
   and didn’t find any parameter for the preview. Going to “Appaerence > Widgets”
   i discovered the error message “le bloc a été affecté par des erreurs et peut
   ne pas fonctionner correctement” It seems that my theme is not compatible with
   the new widgets based block editor (since WP 5.8). As result i installed the 
   plugin “Classic Widgets” to restore the old widget interface. And surprise, the
   tarteaucitron plugin is not popping anymore !
 * The theme i use is Parabola !
 * En français (il semble que vous êtes français ?) :
    Merci pour votre réponse 
   rapide ! J’ai tenté de comprendre pourquoi ce problème ne survenait que pour 
   moi et je n’ai pas trouvé de paramètre spécifique pour l’aperçu des widgets. 
   En allant dans Apparence > Widgets, je me suis rendu compte que l’erreur suivante
   s’affichait : “le bloc a été affecté par des erreurs et peut ne pas fonctionner
   correctement” Il semble que le thème que j’utilise n’est pas compatible avec 
   le nouvel éditeur par blocs (depuis WP 5.8). De ce fait, j’ai installé le plugin“
   Classic Widgets” pour restaurer l’ancien éditeur. Et surprise, tarteaucitron 
   ne s’affiche plus sur l’éditeur widgets.
 * Le thème que j’utilise est Parabola.
 * Je ne désespère pas pouvoir trouver une solution pour la version bloc des widgets
   🙂
 * Bien à vous !
 *  Plugin Author [Amauri](https://wordpress.org/support/users/amauric/)
 * (@amauric)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/widget-preview-problem/#post-15539386)
 * Merci pour le retour : )
    Si vous avez plus d’info n’hésitez pas à les partager
   ici.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Widget preview problem’ is closed to new replies.

 * ![](https://ps.w.org/tarteaucitronjs/assets/icon-256x256.png?rev=2510915)
 * [tarteaucitron.io](https://wordpress.org/plugins/tarteaucitronjs/)
 * [Support Threads](https://wordpress.org/support/plugin/tarteaucitronjs/)
 * [Active Topics](https://wordpress.org/support/plugin/tarteaucitronjs/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tarteaucitronjs/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tarteaucitronjs/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Amauri](https://wordpress.org/support/users/amauric/)
 * Last activity: [4 years, 1 month ago](https://wordpress.org/support/topic/widget-preview-problem/#post-15539386)
 * Status: not resolved