Um die CMP auf einzelnen Seiten auszublenden, gibt es folgende Möglichkeiten:
Möglichkeit 1
Das Banner über CSS verstecken. Dazu auf den entsprechenden Seiten folgenden Code zu dem CSS der Seite hinzufügenTo hide the CMP on individual pages, you have the following options:
Option 1
Hide the banner via CSS. To do this, add the following code to the CSS of the page on the corresponding pages.
Code Block |
---|
#CybotCookiebotDialog { display:none!important; } |
...
Option 2
Alternativ kann eine Funktion Alternatively, a function (global) definiert werdencan be defined
Code Block |
---|
function hideCookieBanner() { var CybotCookiebotDialog = document.getElementById("CybotCookiebotDialog"); CybotCookiebotDialog.style.setProperty("display","none","important"); } |
und anschließend auf den entsprechenden Seiten über folgendes Script Tag ausgeführt werdenand then executed on the appropriate pages using the following script tag.
Code Block |
---|
<script> hideCookieBanner(); </script> |
...