DEV Community

Danilo Desole
Danilo Desole

Posted on

Cookiebot and Slider Revoltion

Recently I noticed an issue in my WordPress website: I had configured the CookieBot plugin, by CookieBot, to automatically block all the cookies until the user accept/reject those (more info here), and the slider (on all pages) has stopped to work.

The slider I'm mentioning is Slider Revolution by ThemePunch.

I struggled to came up with a solution, online the only proposed fix was to set the CookieBot plugin to manually block all the cookies, though using this way I needed to code a bunch of JS in order to effectively block the cookies from being downloaded to the user browser storage. Too lazy to do that!

So I investigate a little bit and I figured out that Google Fonts doesn't set cookie, but it's collecting IPs and other info (more comprehensive description here) hence CookieBot is blocking the script execution until the user explicitly accepts that its identity (IP and other stuff mentioned before) can be recorded by Big G.

Bottom of the bottle: disable Google Fonts load in Slider Revolution and load them as a separate resource, if your theme doesn't load them already.

Alt Text

Happy Blogging!

Top comments (0)