• Resolved catariin4

    (@catariin4)


    Hi!

    Is it possible to change the button size for different languages?
    In arabic, Dari and russian “deny button” text doesn’t fit to the button atm.

    Thank you already for your help!

    Best regards,
    Katariina

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

Viewing 1 replies (of 1 total)
  • Plugin Contributor jarnovos

    (@jarnovos)

    Hi @catariin4,

    Yes, you could do this based on the lang value of the <html> element on the page. The below example will set a font-size of 18px on the Accept & Deny buttons in case Finnish is selected, but sets them to 14px in case of Russian.

    html:lang(fi) .cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-accept, 
    html:lang(fi) .cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-deny {
        font-size: 18px;
    }
    
    html:lang(ru) .cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-accept, 
    html:lang(ru) .cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-deny {
        font-size: 14px;
    }

    Hope it helps,
    Kind regards.
    Jarno

Viewing 1 replies (of 1 total)
  • The topic ‘How to chane the button size’ is closed to new replies.