• Resolved Ceedjay

    (@ewatts)


    Hello,

    my review badge display only when i’m connected in admin, i guess i need to allow the script on wprocket but i don’t know the name of this script, can you help ?

    regards

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author storessential

    (@storessential)

    Hello @ewatts

    Please could you provide me with a link to your website so that I can see what scripts are being loaded?

    I’m not too sure how WPRocket works, however the Google Reviews scripts are added inline. The name of the scripts are:
    se_wc_google_reviews_language_script
    se_wc_google_reviews_badge_script
    se_wc_google_reviews_opt_in_script

    I hope this helps!

    Thread Starter Ceedjay

    (@ewatts)

    Hello, thank you for your reply, please check:

    https://e-watts.fr

    Regards

    Plugin Author storessential

    (@storessential)

    I’ve had a quick look at the site, and there appears to be a JavaScript error caused by the Elementor WooCommerce Builder plugin. Sometimes script errors thrown by other plugins can cause other scripts not to run. Would it be possible to deactivate the Elementor WooCommerce Builder plugin to see if this resolves the issue?

    Plugin Author storessential

    (@storessential)

    @ewatts

    I’ve been having a look into this a bit more, and have noticed that there is a script missing on your website that loads the Google script from the Google server. Without this script, the badge won’t be able to load.

    I’ve gone through my own production sites and my staging site that I use to develop the plugin, and the script is being outputted with no problems. I can only assume that there is a plugin conflict that is stopping the script from being outputted.

    The code that is missing is this:

    <script src="https://apis.google.com/js/platform.js?onload=renderBadge" async defer></script>

    My guess is that it may be WPRocket that is the culprit, because you say that you can see the badge when you are logged in as an admin. I’m not too familiar with WPRocket, but I do know that it has an option for the cache to be turned off for logged in users, so that may be what is the case here.

    Thread Starter Ceedjay

    (@ewatts)

    thank you for your help, it’es better now, when i’m logged out i can see it but only if i refresh the page

    Plugin Author storessential

    (@storessential)

    @ewatts You’re welcome, I’m glad that it’s showing now. I’ve had a look too and it’s showing for me. Having to refresh the page is probably down to cache. The badge is showing first time for me 🙂

    Hi,
    I am facing the same challenge. The badge is sometimes displayed, sometimes not.

    Did you find a solution to that challenge?
    I am using Elementor and WP Rocket as well.

    This is my website: https://vestakorn.de/

    Plugin Author storessential

    (@storessential)

    Hi @denyslauster

    I’ve had a look and the badge is showing for me. If the badge is showing sometimes and not others, it could either be a cache issue or a Javascript conflict.

    Have you tried disabling WPRocket to see if this resolves the issue?

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Review badge don’t display’ is closed to new replies.