The Privacy Suite for WordPress

CSS Lesson #9 Changing the Dismiss button to a Close button

Get compliant today in the European Union, United States, Canada, United Kingdom, Australia & South Africa with the only Privacy Suite for WordPress that offers a fully-featured plugin for Worldwide Compliance.

At the request of some of our users; is it possible to remove the dismiss button and just add a (x) button to the cookie banner? The answer is yes, and this is an example of how it will look like and how to implement it with some custom CSS.

And this is how it’s done

Removing the dismiss is not necessary, we will use it to create the (x) button. If you know your way around CSS, please refer to our integration here:

  1. We will use the dismiss/functional only button to create the (x). The only thing you need to do is enter “x” instead of “dismiss” or any other description.
  2. Now we have to remove the (x) to the right-top corner. For this, you can use the below CSS, and add it to “Appearance – Customize – Additional CSS”.
  3. Now you have a blank space where the dismiss button used to be, the CSS below will also take care of this. Be aware this is based on the Accept All + View Preferences template. Adjustments for other templates might be needed.
  4. And now you’re done, the (x) will still function as a dismiss button.

Custom CSS

Recent articles

The Privacy Suite for WordPress
Get compliant today with the only Privacy Suite made for WordPress


Popular articles

LGPD Brazil and WordPress

The “Marco Civil” and the Brazilian General Data Protection Law (LGPD) In Complianz 5.4 we will add full support for the Civil Rights Framework for

Read More

Join our mailing list - 8 Tips & Tricks in your inbox over the next 8 weeks!