Styling the cookie declaration
The Cookie Declaration will automatically adopt the styling on your website (from your website’s general stylesheet). If you would like to style it further, you can use the CSS !important rule in your website’s own stylesheet. You can choose if the introduction text should be included or not . If you embed the Cookie Declaration in your existing Privacy Policy, you may already have explained the use of cookies somewhere else.
All customizations are made in the Cookiebot manager.
Introduction text

If you do not wish to include the introduction text, you can deselect it from the backend Manager:
- Log in to your account https://manage.cookiebot.com/goto/login
- Go to the menu point ‘Settings’ and the tab ‘Declaration’
- Un-tick the checkbox at the bottom
- Save your settings (tick-mark on the left-hand side blue panel)
Differences:


You can also choose to make your own custom Cookie Declaration using XSLT (premium subscription only).
For this, a custom template is available. This contains XSLT as well as XML data nodes (available from the small grey question mark on the right-hand side).

The code up onto line number 22 exists of essential code for generating the declaration, language settings and default markup. Do not alter these lines unless you are sure of what you are doing.
<p class="CookieDeclarationDialogText">
<xsl:value-of select="//Labels/Title" ></xsl:value-of>. <xsl:value-of select="//Labels/Text" ></xsl:value-of>
</p>
<p class="CookieDeclarationIntro">
<xsl:value-of select="//Labels/CookieGeneralIntro" ></xsl:value-of>
</p>
<p>
<xsl:value-of select="//Labels/ConsentDomains"></xsl:value-of>
</p>
<div id="CookieDeclarationUserStatusPanel"></div>
<br/>
<p class="CookieDeclarationLastUpdated">
<xsl:value-of select="//Labels/LastUpdated" disable-output-escaping="yes"></xsl:value-of>:
</p>
You don’t want to show the default text and introduction? Remove these lines:

<p class="CookieDeclarationDialogText">
<xsl:value-of select="//Labels/Title" ></xsl:value-of>. <xsl:value-of select="//Labels/Text" ></xsl:value-of>
</p>
<p class="CookieDeclarationIntro">
<xsl:value-of select="//Labels/CookieGeneralIntro" ></xsl:value-of>
</p>
Would you like to remove the line “Your consent applies to……..” ? Remove these lines:
<p>
<xsl:value-of select="//Labels/ConsentDomains"></xsl:value-of>
</p>
Full list of placeholders:
Placeholder name | Description |
---|---|
//Labels/Title | Dialog heading |
//Labels/Text | Dialog body text |
//Labels/Language | Current language code |
//Labels/TextDirection | Current language text direction (LTR or RTL) |
//Labels/CookieGeneralIntro | General cookie introduction |
//Labels/AboutCookies | About Cookies label |
//Labels/CookiesOverview | Cookies Declaration label |
//Labels/LastUpdated | Declaration last updated date label |
//Labels/CookieTypeNecessaryTitle | Necessary cookies category title |
//Labels/CookieTypeNecessaryIntro | Necessary cookies introduction |
//Labels/CookieTypePreferenceTitle | Preference cookies category title |
//Labels/CookieTypePreferenceIntro | Preference cookies introduction |
//Labels/CookieTypeStatisticsTitle | Statistics cookies category title |
//Labels/CookieTypeStatisticsIntro | Statistics cookies introduction |
//Labels/CookieTypeMarketingTitle | Marketing cookies category title |
//Labels/CookieTypeMarketingIntro | Marketing cookies introduction |
//Labels/CookieTypeUnclassifiedTitle | Unclassified cookies category title |
//Labels/CookieTypeUnclassifiedIntro | Unclassified cookies introduction |
//Labels/HeaderName | Name |
//Labels/HeaderProvider | Provider |
//Labels/HeaderPurpose | Purpose |
//Labels/HeaderType | Type |
//Labels/HeaderExpiry | Expiry |
//Labels/ConsentDomains | Text label including a comma-separated list of domains which cookies are included in the cookie declaration. |
XML node //Cookies
Placeholder name | Description |
---|---|
//Cookies/Cookie | Collection of nodes with information for each cookie. |
/Cookie/Category | Category |
/Cookie/Domains | Collection of nodes with the name of each domain that uses the cookie. |
/Domains/Domain/DomainName | Name of the domain that set the cookie. |
/Domains/Domain/DomainIP | IP number |
/Domains/Domain/CountryID | Country code ID |
/Domains/Domain/CountryName | Country name |
/Cookie/Expire | Expiry |
/Cookie/ExpireDays | The cookie’s lifetime expressed numerically in number of days. |
/Cookie/ExpireSeconds | The cookie’s lifetime expressed numerically in number of seconds. |
/Cookie/FirstURL | First found URL |
/Cookie/HTTPOnly | True if the cookie can only be read by the server that set the cookie. |
/Cookie/Path | Path |
/Cookie/Persistent | True if the cookie is stored permanently on the user’s browser. |
/Cookie/Purpose | Purpose |
/Cookie/Secure | True if the cookie is set via an encrypted connection. |
/Cookie/TrackerType | Type |
/Cookie/TrackerTypeID | Type ID |
/Cookie/ThirdParty | True if the cookie is set by a third-party domain. |
/Cookie/Value | Example value |