Hi @grossfr,
The example in the article works on my end, and I’ve just implemented it on another test site where it also works correctly.
One possible reason for this is that you might have the option “Respect Do Not Track settings in browsers” enabled in the plugin, found under Wizard > General > Security & Consent.
Meaning that if the plugin detects a Do Not Track signal from the browser (which browsers such as Firefox have enabled by default), the plugin will automatically assume all your cookie preferences to be “denied”, and doesn’t display a banner as a result.
Disabling that option in Complianz, or disabling the “Send a Do Not Track” option in your browser, will resolve this behavior and cause the banner to appear.
While I’d expect the above to be the reason for the described behavior, please find further instructions on creating the link as well:
Make sure to copy the code under the section “Adding javascript to trigger the Cookie banner“, place it in a .php file and upload to the folder /wp-content/mu-plugins/
on your site.
And then you can create a link by using the class cmplz-show-banner
.
<p>Manage your cookie preferences <a class="cmplz-show-banner">by clicking here.</a></p>
Kind regards, Jarno