How to change the font size and the font weight

[ad_1]

Hi @catariin4,

To start off, there are currently two Cookie Consent plugins activated on this website. The Complianz banner only became visible when I visited a version of the site before the optimizations made by LiteSpeed Cache (using this URL), you will likely need to clear/purge cache in LiteSpeed for the Complianz banner to appear.

If you tried applying CSS previously, the above could have been the reason why the changes did not appear, as the banner from that other Cookie Consent plugin was likely being displayed instead.

As for the CSS rules (adjusting font-weight and font-family of the Cookie Banner message and buttons):

.cmplz-cookiebanner .cmplz-message, .cmplz-cookiebanner .cmplz-buttons .cmplz-btn {
    font-family: "Gill Sans", sans-serif;
    font-weight: 700;
}

Hope this helps!
Kind regards,
Jarno

Hi!

Thank you for a quick reply!

The other plugin is deactivated, I cleared the cache and added the code to css section but it still doesn’t change the fonts.

What could cause this problem or am I doing something wrong?:)

Thank you for your help!

Best regards,
Katariina

Hello @catariin4,

It looks like something went wrong during the copying and pasting of the CSS, as some characters appear to be incorrect:

I expect that if you manually correct the lines to match the ones I provided above, they will be applied.

Kind regards,
Jarno

It’s working! Thank you!!

One more question😇 Is there a chance to change the font size of the accept and deny button?

Best regards,
Katariina

Hello @catariin4,

Of course. The below will change both the Accept & Deny button. Change the value to whichever font-size you desire.

.cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-accept, 
.cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-deny {
    font-size: 18px;
}

Kind regards,
Jarno

  • This reply was modified 28 minutes ago by jarnovos.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer