Documentation

Everything you need to get started with Blocksy Theme and Companion

Cookies Consent

The General Data Protection Regulation (GDPR) was created in December 2015 and designed to ensure the rights of European citizens to basic data protection standards.

The legislation idea is to create a set of rules for the entire EU, which uphold the highest standards of data privacy. Despite being an EU regulation, the GDPR will apply to any site that collects data from EU citizens. This means that if you are running a WordPress website, and some of your users reside in the EU, the GDPR technically applies to you. 

Blocksy has a built in extension to comply with this GDPR regulations and inform your visitors that the site is collecting their cookies.

Activating the Coockies Consent Extension

Head over to WordPress DashboardBlocksyExtensions and click the Activate button on Cookies Consent extension.

Known problems with caching plugins

Sometimes you may spot that the cookie consent banner appears even after you’ve approved it. This is a very common problem for banners that should be hidden depending on browser cookies and it occurs when a caching solution is being used for the site.

Basically, the cache plugin ignores the cookie value and always outputs the same html for the page — with the banner in place. To prevent this, we need to instruct the plugin about our custom cookie so that it can handle it accordingly and generate caches depending on its value. The cookie used by Blocksy for this is named blocksy_cookies_consent_accepted.

A couple of plugins are handled automatically by Blocksy Companion, without you having to do any action, and they are WP Rocket and WP Super Cache.

But some of them (W3 Total Cache and WP Fastest Cache) need to be configured manually to avoid the problem.

Configure Instructions:

W3 Total Cache
  1. Navigate to Performance ➝ Page Cache and scroll to the Rejected cookies option.
  2. In the text field there, insert this value: blocksy_cookies_consent_accepted.
  3. Make sure to purge all caches from settings.
LiteSpeed Cache
  1. Navigate to LiteSpeed Cache ➝ Settings ➝ Excludes [4]
  2. In the text field Do Not Cache Cookies add this value: blocksy_cookies_consent_accepted
  3. Save settings
WP Fastest Cache
  1. Navigate to Exclude and scroll to the Exclude Cookies option.
  2. Click on Add new rule and insert this value: blocksy_cookies_consent_accepted.
  3. Make sure to purge all caches from settings.
Cache Enabler
  1. Navigate to Settings -> Cache Enabler and scroll to the Cache Exclusions section
  2. In the Regexp matching cookiesinput insert the following regular expression: /^(wp-postpass|wordpress_logged_in|comment_author|(blocksy_cookies_consent_accepted)_?)/
  3. Please note that if you have added other cookies already added in this input, you should adjust the regular expression accordingly, by adding additional or clauses(|).

Not the solution you are looking for?

Please check other articles or open a support ticket.