WP Rocket is installed on my client’s site and it’s causing the theme included Cookie Consent bar to not display.
Can you please provide the JS file and path for the Cookie Consent bar to exclude from the WP Rocket settings?
Thanks!
Hey krisknap,
Thank you for the inquiry.
Have you tried to toggle or temporarily disable the Enfold > Performance > File Compression settings?
Please provide the site URL and login details in the private field so we can check the issue further.
The script below is responsible for the cookie consent behavior and functions.
— enfold/js/avia-snippet-cookieconsent.min.js
— enfold/js/avia-snippet-cookieconsent.js
Best regards,
Ismael
Adding the below file paths to the “Excluded” files for the JS Delay and JS Deferred in the WP Rocket settings did not work.
— enfold/js/avia-snippet-cookieconsent.min.js
— enfold/js/avia-snippet-cookieconsent.js
I will need to clone the live site to staging to test disabling the Enfold > Performance > File Compression settings. If I try that and it doesn’t work, I will provide temp login details for staging so you can troubleshoot.
Thanks!
Hi,
Please also note that some browser “AD Blockers” also block the cookie consent, perhaps that is your issue.
Best regards,
Mike
Hi,
Thank you for the update.
The cookie consent wrap is hidden on both sites when we checked. The browser seems to be creating a css rule that hides the cookie consent elements.
.avia-cookie-consent-wrap {
display: none !important;
}
We tried overriding it but it doesn’t work.
.avia-cookie-consent-wrap {
display: block !important;
}
The issue doesn’t occur on our own installation, so it’s probably caused by a plugin or a custom modification.
We may need to login to the site to further investigate the issue.
Best regards,
Ismael