All Collections
Consent Management Solution
Consent Management Solution FAQs
How can I hide my preference center link when the consent banner is disabled?
How can I hide my preference center link when the consent banner is disabled?
Updated over a week ago

Disabling your consent banner

If you configure your regional consent settings so that your consent banner is disabled for a particular region, no scripts will be blocked and consent will not be collected from visitors to your site from that region.

In such cases, the preference center link that normally allows users to update their consent preferences should not be displayed either. This is because there are no preferences to change.

Style the preference link when the consent banner is disabled

To control the treatment of the preference center link when the banner is disabled, you can target the CSS class .termly-display-preferences--disabled.

This will allow you to make any necessary changes to the link's appearance or functionality.

Example:

<style> 
.termly-display-preferences--disabled {
// Apply your treatment here for the preference center link when the consent banner is disabled. Make it disappear if you like!
display: none;
}
</style>

By targeting this CSS class, you can customize the preference center link to fit your specific needs. For example, you can make it disappear completely, change its color or font, or add a message explaining why the link is not available.

Did this answer your question?