/
Hide Usercentrics on individual pages

Hide Usercentrics on individual pages

To hide the CMP on individual pages, the following code snippets can be used:

V1:

In v1 it is best to simply hide the CMP using CSS:

div#uc-banner-centered { display: none!important; } .uc-banner-content { display: none!important; } div#uc-banner-modal { display: none!important; }

If necessary, the snippet must be supplemented, depending on how the CMP is designed.

V2:

In v2, the CMP can be disabled via a script on individual subpages:

<script type="application/javascript"> var UC_UI_SUPPRESS_CMP_DISPLAY=true; </script>

 

Related content