Hi @nlmegias,
It looks like it’s working when you load the page without WP Rocket active. You can verify this yourself by clicking this link: (link)
Could you try excluding the entire Complianz plugin from Javascript Deferring & Minification? Within the WP Rocket plugin, please navigate to the File Optimization tab > Exclude JavaScript Files, and enter this in the textbox: /wp-content/plugins/complianz-gdpr/(.*).js
Let me know if that does the trick.
Kind regards,
Jarno
Thanks!
The consent management button problem has been resolved, but now the cookie banner does not appear (it should appear at the bottom of the page)
Hi @nlmegias,
I will separate the two issue(s) to keep it clear/managable, and propose solutions for both:
Hide “Manage consent” button
Copy the below CSS to Appearance > Customize > Additional CSS:
.cc-revoke {
display: none!important;
}
Cookie Banner not appearing
With the link I sent earlier, which loads the site without WP Rocket, the banner is displayed correctly on the bottom of the page.
In the browser console I see “jQuery is not defined” when Complianz tries to use it, so I assume that WP Rocket is deferring jQuery. Can you add the below to Exclude JavaScript Files as well (on a new line)?
/wp-includes/js/jquery/(.*).js
Hope it helps!
Kind regards,
Jarno
Same result 😩
The consent managment button not appearing (yeah!), but the banner, neither.
-
This reply was modified 4 years, 7 months ago by
.
Hi @nlmegias,
That definitely seems to have fixed something, as Complianz now detects jQuery again and I can see the banner popping up as well (although the positioning is still off).
Are you clearing the WP Rocket cache after making your changes, as well as checking the site in an Incognito window with your browser? That ensures that we’re not looking at an “old” version of the site.
As I’m relatively sure that this is related to WP Rocket: the best course of action would be to disable optimization functions one-by-one within WP Rocket, and checking your site after each disabled option, to see if the issue is fixed by doing so. That will narrow down the issue to the functionality that’s causing this.
Kind regards,
Jarno
Hi @nlmegias,
I’ve just had another look at the website, and everything seems to be working as expected now (banner displayed on bottom, no manage consent button).
Could you confirm whether the issue(s) have been resolved?
Kind regards,
Jarno