Complianz Privacy Suite

CSS Lesson #3: Using your own Document CSS

Aert Hulsebos

Aert Hulsebos

Categories

Popular articles

Creating the Legal Hub

Have you seen our new Legal Hub? If not, have a look before reading this instruction article. We created the legal hub to centralize our

Read More

Placeholders for iFrames

From 4.6.11 onwards, you can also use consent shortcode wrappers. An instruction can be found here. You’re able to block iFrames with Complianz with the

Read More
Share on facebook
Facebook
Share on twitter
Twitter
Share on linkedin
LinkedIn

We have added our own CSS for the legal documents, so out-of-the-box, your documents look great at the front-end. If you want to add to our CSS, you can add custom CSS under settings. With the right CSS properties, you can change almost anything.

If you rather let your theme’s CSS control the look of the documents, you can disable our CSS altogether and change custom CSS in your theme if necessary.

Update: To show the categories, instead of the button, please use: cmplz-manage-consent between brackets []

The revoke button

Important to note is we added CSS for the revoke cookie consent button below the Cookie Policies. When our CSS is disabled the button’s properties will change, for example:

Document CSS Enabled
Document CSS Disabled

When Document CSS is disabled you will see the following:

Current status: AcceptedCurrent status: Denied

To hide the current status, please add the following to custom CSS:

/* styles for the status in document */
.cmplz-status-denied, .cmplz-status-accepted {
display:none;
}

To change the button use (example):

/* styles for the revoke button in document*/
#cmplz-document button.cc-revoke-custom {
background-color: #ffd600;
border-color: #ffd600;
height: 35px;
font-family: inherit;
font-weight: bold;
}

If you want to change the hover properties. Please add

:hover

to your property.

#cmplz-document button.cc-revoke-custom:hover {}
Added CSS for revoke button

If you need to change the headings, colors, font-size, and more, please visit Complianz > Settings. We have added the most common properties for you to our Custom CSS. Try it out, or leave us a message!

Recent articles

Subscribe