• Resolved catariin4

    (@catariin4)


    Hi,

    How can I change the font and the font weight of the cookie banner text, accept and deny button?

    Thank you already for your help! ??

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor jarnovos

    (@jarnovos)

    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

    Thread Starter catariin4

    (@catariin4)

    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

    Plugin Contributor jarnovos

    (@jarnovos)

    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

    Thread Starter catariin4

    (@catariin4)

    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

    Plugin Contributor jarnovos

    (@jarnovos)

    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 2 years, 3 months ago by jarnovos.
    Thread Starter catariin4

    (@catariin4)

    Thank you so much!!

    Best regards,
    Katariina

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to change the font size and the font weight’ is closed to new replies.