Use custom link/button instead of Cookie Shield

If you find that our shield blocks important elements of your website, you can use a custom link/button instead of the Cookie Shield to enable access to the cookie settings.

This feature is only available for customers on Cookie Business.

Step 1: Choose "using a custom link/button"

In the Widget Builder, select the "using a custom link/button" option, as shown:

Press save and exit.

Step 2: Create a custom link/button on your webpage

To enable the custom link/button, you must add the data-legalmonster="show-cookie-settings" attribute to your chosen HTML element. For example, to use a button element, you would add the following:

<button data-legalmonster="show-cookie-settings">Access your cookie settings</button>

When the user clicks or taps an element with that attribute, the cookie widget will show the settings page.

If the data-legalmonster="show-cookie-settings" attribute is not present on at least one element on the page, the cookie widget will revert to showing the shield, and log a warning in the browser console.

Example

Below is an example of how you could use this functionality on your page:

Adding the custom link to the footer
Clicking it will open the Privacy Settings

The updated link would look something like this:

<a data-legalmonster="show-cookie-settings">Access your cookie settings</a>