Knowledge Base › Lightweight Cookie Notice › Customization

Advanced Settings Reference

This article describes every option of the Advanced tab in Cookie Notice → Options, with its default value. Use it as a reference when you need to know what an option does.

The tab has these sections: Behavior, Fonts, Content, Google Consent Mode (Pro), Cookie Attributes, and Capabilities (Pro).

Behavior

OptionDefaultDescription
Assets ModeProductionProduction loads one minified JavaScript file. Development loads the separate, non-minified files. Use Development only to investigate a JavaScript error.
Test ModeOffWhen on, the cookie notice is displayed only to site administrators. Use it while you configure the notice on a live site.
Reload PageOffWhen on, the page is reloaded when the visitor accepts or rejects the cookies, so the scripts of the categories are applied immediately.
Store User ConsentOnWhen on, each consent is saved in the Consent Log.
Consent Log RetentionDisabledPermanently deletes the consent log records older than the selected period: Six Months, One Year, Two Years, or Three Years. The deletion runs when the option is saved and then once a day.
Transient Expiration0The number of seconds the notice data is kept in a transient. With 0 the transient is not used.
Page Fragment Caching Exception (W3TC)OffAdds the scripts of the categories with the page fragment caching feature of W3 Total Cache. Turn it on only if you use W3 Total Cache.
WP Super Cache Integration (Pro)OnRegisters the acceptance cookie with WP Super Cache, so cached pages with consent-based scripts are not served to visitors who have not accepted.

See Using the Plugin with Caching Plugins for Transient Expiration and the two caching options, and Reviewing and Exporting Consent Records for the consent log options.

Fonts

OptionDefaultDescription
Google Fonts Embed Code URLThe URL of the Open Sans fontThe Google Fonts stylesheet loaded on the front end. Clear it to load no font from Google.
Headings Font Family‘Open Sans’, Helvetica, Arial, sans-serifThe font family of the headings.
Paragraphs Font Family‘Open Sans’, Helvetica, Arial, sans-serifThe font family of the paragraphs.
Buttons Font Family‘Open Sans’, Helvetica, Arial, sans-serifThe font family of the buttons.

See Customizing the Style.

Content

OptionDefaultDescription
Responsive Breakpoint700Below this browser width, in pixels, the mobile version of the notice is used.
Cookie Table ColumnsName, Expiration, PurposeThe columns of the cookie tables. See Listing Your Cookies.
Force CSS SpecificityOnAdds !important to the CSS of the plugin so your theme does not override it.
Compress OutputOnCompresses the JavaScript code that initializes the notice in the page.

Google Consent Mode (Pro)

OptionDefaultDescription
Push Basic Consent Mode to Data LayerOffSets all the consent mode parameters to “denied” by default on every page, and sends the consent choices of the visitors to Google through the data layer after they grant consent.
Google Tag Manager Container IDEmptyYour container ID (for example GTM-XXXXXXX). When set, the plugin loads the Google Tag Manager container after the visitor grants at least one consent mode parameter. The container is not loaded before the visitor makes a choice.

See Setting Up Google Consent Mode.

Cookie Attributes

These options apply to the cookies that the plugin uses to remember the visitor’s choice.

OptionDefaultDescription
ExpirationUnlimitedHow long the choice is remembered.
Domain (Pro)EmptyThe domain for which the cookies are valid.
Path/The path for which the cookies are valid.

Expiration

The available values are Unlimited, One Hour, One Day, One Week, One Month, Three Months, Six Months, and One Year.

When the period ends, the saved choice expires and the visitor sees the cookie notice again. Select a period if you want to ask for consent again at regular intervals, for example Six Months or One Year.

A new value applies to the choices made after you save it. The choices already saved keep the expiration they had.

Browsers can apply their own limits to the lifetime of cookies. A browser may delete the cookies of the plugin earlier than the selected period, and the visitor then sees the notice again.

Domain (Pro): share the consent across subdomains

By default the cookies are valid only for the host where the visitor made the choice. A choice made on www.example.com does not apply to shop.example.com.

To share the choice across the subdomains, enter your main domain in Domain:

example.com

With this value, a choice made on any subdomain of example.com is valid on all of them.

Requirements when the subdomains are separate WordPress sites:

  • Install the Pro version on each site and enter the same value in Domain on each site.
  • Use the same Expiration and Path on each site.
  • Create the same categories on each site, with the same IDs. The saved choice refers to the categories by their ID. You can see the ID of a category in the address of its edit page, after edit_id=.

Leave Domain empty if you do not need to share the choice.

Path

The path that must be part of the requested URL for the browser to send the cookies. The default / makes the cookies valid for the whole site. Change it only if you have a specific reason.

Capabilities (Pro)

In the Pro version you can choose which WordPress capability is required to open each plugin menu. This lets you give access to users who are not administrators, or restrict it.

OptionDefault capabilityRoles with this capability by default
Consent Log Menumanage_optionsAdministrator
Sections Menuedit_others_postsEditor, Administrator
Categories Menuedit_others_postsEditor, Administrator
Cookies Menuedit_others_postsEditor, Administrator
Tools Menumanage_optionsAdministrator
Maintenance Menumanage_optionsAdministrator

The Options menu always requires the manage_options capability.

Example: allow only administrators to edit categories

Categories can contain scripts that run on your site. To restrict them to administrators, enter manage_options in Categories Menu and click Save settings.

Enter a valid WordPress capability. If you enter a capability that no user has, nobody can open that menu.

In the free version all the plugin menus require the manage_options capability.

Other tabs