Skip to main content
Turn off the consent widget

Learn how to turn off the consent widget.

Updated over a week ago

If your website uses technologies to collect and process users' personal data, you must provide users with the ability to give, refuse, and change their consent at any time. This helps you comply with privacy laws such as GDPR and CCPA.

A consent widget allows users to easily reopen the consent popup to adjust their preferences. In this article, we’ll show you how to adjust or remove the consent widget.

Before you start

Here are a few things to know before you start:

  • The consent widget, the icon , is a feature that allows users to reopen the cookie consent popup on your website after they have initially made their choices. This widget works by default in Cookie Information Consent Management Platform.

  • If you don’t want to use the consent widget, turn it off. You can adapt this mechanism to reopen the consent popup on any other button, link, or function by using the script below. More details later in the article.

  • You need to apply the mechanism for reopening the consent popup on all pages of your website that collect users' data.

  • The script javascript:CookieConsent.renew(); reopens the cookie consent dialog when triggered.

Use the widget's mechanism to make a button reopen the consent popup

To make a button reopen the consent popup using the widget's mechanism, add the following script to your website's source code for the desired button: <button onClick="javascript:CookieConsent.renew();">Renew Consent</button>.

Use the widget's mechanism to make a link reopen the consent popup

To make a link reopen the consent popup using the widget's mechanism, add the following script to your website's source code for the desired link: <a href="javascript:CookieConsent.renew();">Cookie Settings<a/>.

Turn off the consent widget

To turn off the consent widget, follow these steps:

1. Log in to Cookie Information.

2. In Consent Solutions, find the consent solution you want to turn off the consent widget.

Find a consent solution in Cookie Information

3. Go to Pop-up appearance > Advanced options.

Open advanced options of the consent banner in Cookie Information

4. Click Expand.

5. In JavaScript, navigate to the code line: renewBtn.style.display = 'block';

Change the code line in JS field in Cookie Information

6. In the code, change 'block' to 'none'.

7. Click Save and publish.

Note: If you want to turn on the consent widget, change this line to 'block'.

8. Done.

Related articles:

Did this answer your question?