Search
Close this search box.

CSS Lesson #2: Adding Box-Shadow to your Cookie Notice

Box-shadow is now a setting under Cookie banner settings – Appearance

The standard templates and the Custom CSS possibilities make it possible to design your Cookie Notice to suit the style of your website. We will start a weekly lesson on how to add design elements to your Cookie Notice using Custom CSS. Do you want to try it yourself? Visit https://www.w3schools.com/cssref/ for an extensive overview of CSS properties.

You can add Custom CSS in our editor, in your theme’s Custom CSS editor or any plugin that provides CSS control. Because every WordPress website is different we will work with the addition of !important to override any CSS currently loaded on your webpage.

Lesson#2: Adding Box-Shadow to your Cookie Notice

The box-shadow is a great way to put depth on your cookie banner. Complianz comes with a minimal template that adds the box-shadow by default, but if you want to change or add it to another template you will need the following CSS properties:

For the below banner, we used the following CSS properties:

.cmplz-cookiebanner { to add shadow to the entire window (box) }

Copy/Paste the below code and try it yourself!

Need support for Google Consent Mode V2, or TCF? Start here with our dedicated support team.

Join 1 Million users and install The Privacy Suite for WordPress locally, automated or fully customised, and access our awesome support if you need any help!