GDPR Cookie Law – GDPR Cookie Compliance Plugin example – Cookie Icon Color
For the best user experience on the demo site, the cookies are automatically deleted. This way you can always see the notification toolbar.
Cookie Icon Color
Example code
<link rel="stylesheet" href="http://your-domain.com/gdpr-cookie-law/css/gdpr-cookie-law.min.css">
<script src="http://your-domain.com/gdpr-cookie-law/js/jquery-3.3.1.min.js"></script>
<script src="http://your-domain.com/gdpr-cookie-law/js/gdpr-cookie-law.min.js"></script>
<script>
$(document).ready(function () {
$(document).gdprCookieLaw({
moreLinkHref: 'http://your-domain.com/privacy-policy',
iconStatus: true,
iconColor: '#fff'
});
});
</script>
Related options
Peoprty | Possible Values | Default Value | Description |
---|---|---|---|
iconStatus | true, false | true | The status of the cookie icon. You have the option to appear or disappear the cookie icon in the pop-up. |
iconColor | e.g. '#333', '#369', '#454545', '#fff', 'currentColor', etc. | 'currentColor' | The color of the cookie icon. |