This article describes the different plugin configuration options for the Cookie Banner plugin.
This article describes the different plugin configuration options for the Cookie Banner plugin.
If this checkbox is checked, the plugin will enable the Cookie Banner. If it is not checked, the plugin will not function.
This option is in addition to the WordPress plugin enabled/disabled state, so you can first configure the Cookie Banner before showing it.
Here you can configure how long the Cookie Banner will not be shown after a user has selected their preference, i.e. how long their preferences are saved.
Note that if the user clears their cookies, or visits from another browser (or incognito from the same browser), the popup will be shown again.
The value is in days. Default: 365 (one year).
Select any page the popup should not be shown, whether the user has selected their preferences or not.
This can be used to exclude e.g. privacy policy pages, which would otherwise be blocked by the popup.
Any selected page that has a translation with the WPML multilingual plugin is also automatically excluded.
Pressing this button will reset all previously selected visitor preferences. This means every visitor will be shown the cookie popup again, even if they selected their preferences before and are not over the max age.
This feature can be useful when you change your privacy policy and need visitors to select their preferences again.
Also note that when adding new categories, this feature needs to be used if you want returning visistors to have the possibility to select it. Otherwise, they won’t trigger scripts and permissions linked to this option until they go over the max age.
See the Cookie Banner styling guide for more information about styling the Cookie Banner plugin with CSS.
Select the percentage (a number between 0 and 100) that represents how opaque the overlay should be.
0 is fully transparent (i.e. you can see the website in the background), 100 is fully black.
Color of the title in the popup, the background of the popup, and the color of the popup border.
The text color can be changed in the WYSIWYG editor (Content tab).

Enter any class name(s) you’d like the title or buttons to have.
This can be useful when you have a specific class name in your theme for existing titles or buttons.
Note that these values are copied verbatim to the class attribute.
If you’d like to style the Cookie Banner popup, you can add the CSS here.
It is recommended to add the style here and not in your theme, as it will not linger in your theme when you uninstall the plugin.
CSS entered here is copied verbatim to all pages, and below the default CSS (see the Cookie Banner styling guide for more information).
The title of the Cookie Banner popup.
The content of the Cookie Banner popup.
You can add links here to your privacy policy; if so, make sure to exclude those pages from the Cookie Banner functionality.
The text shown on the buttons.
You can create one or more categories here. Categories are represented in the Cookie Banner popup as checkboxes.
Each category has an Internal ID, display name, and a mandatory checkbox.
A category can be removed with the trash can icon shown on the right. A category can only be removed if it is not being used in a Snippet (see below). If you want to remove such a category, first remove the Snippet.


If there are no categories yet, you can’t add Snippets. Create one or more categories first.
A Snippet is a piece of JavaScript or HTML code that is executed at a specific place at a specific trigger. The following options are available for each Snippet:
If there are no categories, this page will be disabled. Create one or more categories first.
Whether or not any Google Consent Mode flags should be sent to the dataLayer.
If disabled, no default or update consent dataLayer event will be pushed.
Here you can select the options regarding the Google Consent Mode flags in combination to your categories.
For each Google Consent Mode flag, you can select whether it should be set to granted when the visitor has given consent.
The plugin will always first output a default consent event, in which all enabled flags (checkboxes in the settings page) are set to denied.
Once the user has selected their preferences (in the popup), an update event will be pushed, with the accepted category GCM flags.
If a visitor has previously selected their preferences, the default and update events are sent directly on page load.

