Information & support > Knowledge base > Other >Laatst bijgewerkt opMarch 12, 2021Cookiebot can automatically hide or show content based on the given consent by the website visitor. The visibility of elements is defined by a series of CSS-class names which you can use by each element:.cookieconsent-optinVisible when the visitor has given consent for 1 or more categories, otherwise hidden..cookieconsent-optoutVisible when a visitor has not yet given consent or consent is given for necessary cookies, otherwise hidden. .cookieconsent-optout-preferencesVisible when a visitor has given consent for “preferences”, otherwise hidden..cookieconsent-optout-statisticsVisible when a visitor has not given consent for “statistics”, otherwise hidden..cookieconsent-optout-marketingVisible when a visitor has not given consent for “marketing”, otherwise hidden. .cookieconsent-optin-preferencesVisible when a visitor has given consent for “preferences”, otherwise hidden..cookieconsent-optin-statisticsVisible when a visitor has given consent for “statistics”, otherwise hidden..cookieconsent-optin-marketingVisible when a visitor has given consent for “marketing”, otherwise hidden.Example:<div class="cookieconsent-optin-marketing"> This content is only visible if the visitor has given consent for marketing cookies. </div> <div class="cookieconsent-optout-marketing">To view this content, you should<a href="javascript: CookieConsent.renew()">accept marketing cookies.</a>. </div>14 day free trial CookiebotCookie scanner, cookie banner, cookie declaration and cookie consent in one solution.Use cookies on your website compliant with GDPR, ePrivacy and cookie legislationCookie management completely automatedCookie banner based on your corporate identityAutomatic composed cookie declaration, always up to dateStart 14 day free trialThe Cookiebot solution runs on 2,3 million websites, manages 7 billion monthly User Consents and supports 47+ languages.Previous Facebook Twitter LinkedIn E-mailNext
Laatst bijgewerkt opMarch 12, 2021Cookiebot can automatically hide or show content based on the given consent by the website visitor. The visibility of elements is defined by a series of CSS-class names which you can use by each element:.cookieconsent-optinVisible when the visitor has given consent for 1 or more categories, otherwise hidden..cookieconsent-optoutVisible when a visitor has not yet given consent or consent is given for necessary cookies, otherwise hidden. .cookieconsent-optout-preferencesVisible when a visitor has given consent for “preferences”, otherwise hidden..cookieconsent-optout-statisticsVisible when a visitor has not given consent for “statistics”, otherwise hidden..cookieconsent-optout-marketingVisible when a visitor has not given consent for “marketing”, otherwise hidden. .cookieconsent-optin-preferencesVisible when a visitor has given consent for “preferences”, otherwise hidden..cookieconsent-optin-statisticsVisible when a visitor has given consent for “statistics”, otherwise hidden..cookieconsent-optin-marketingVisible when a visitor has given consent for “marketing”, otherwise hidden.Example:<div class="cookieconsent-optin-marketing"> This content is only visible if the visitor has given consent for marketing cookies. </div> <div class="cookieconsent-optout-marketing">To view this content, you should<a href="javascript: CookieConsent.renew()">accept marketing cookies.</a>. </div>