• 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

    (@amauric)

    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

    (@alex6m)

    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

    (@amauric)

    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.