Complianz Privacy Suite

CSS Lesson #8 Styling your categories

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

For this lesson we will do two things, removing an unused category from the overview and changing the colors of the square checkboxes, both can be achieved with a little CSS.

Changing the color of the square checkbox

To change the color, for example to green, of the square checkboxes you can use:

#cc-window.cc-window .cmplz-categories-wrap .cc-check svg {
stroke: #40d15b;
}

Removing an unused category, like “Marketing”.

Sometimes (rarely) a website uses only functional and statistics cookies, making the “Marketing” category unnecessary because activating the category won’t set any services or cookies. You can remove the category by adding some CSS. In this example, we remove the 3rd category, of the category list. We will use 3+1 (4) to remove the square and category name. You can play around with the number to get the right category.

.cmplz-categories-wrap:nth-child(4) {
display:none;
}

Let us know if you have an idea for another lesson.

Recent articles

Subscribe