Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1306694

    Hello,

    My site is translated into two languages ​​(French and English) thanks to Polylang. I have activated the Cookie Consent Message Bar from the settings of the enfold theme. I managed to translate the messages into English, but the link leads to the French version of the Privacy Policy page.

    Please see the screenshot :
    https://drive.google.com/file/d/1ZBMKG8_BO_I5j2VWpcIFtuPsDweKzXeR/view?usp=sharing

    How can I change the link according to the language of the site ?

    Thank you very much,
    Audrey

    #1306862

    Hey laboiteapixels12,

    Thank you for the inquiry.

    You can add another button for the other language in the Privacy & Cookies > Cookie Handling > Buttons section, then we can add a few css code to show the appropriate button for the current language. Please provide the site URL in the private field so that we can check it properly.

    Best regards,
    Ismael

    #1306881

    Hi Ismael,

    Thank you for your help. I just added the button for the english version. You can find the url of the site and the identifiers in the private field. Thank you very much in advance !
    Audrey

    #1307088

    Hi,

    Thank you for the info.

    We have added the following css code in the Quick CSS field, and disabled the Performance > File Compression settings temporarily.

    html[lang="fr-FR"] .avia-cookie-consent-button-3.av-extra-cookie-btn.avia-cookie-link-btn {
        display: none !important;
    }
    
    html[lang="en-GB"] .avia-cookie-consent-button-2.av-extra-cookie-btn.avia-cookie-link-btn {
        display: none !important;
    }
    

    This should hide the second button when the current language is en-GB and hide the third one when it is fr-FR.

    Best regards,
    Ismael

    #1307093

    Hi Ismael,

    It works ! Thank you very much !
    If I enable the Performance > File compression settings, it won’t work anymore ?

    Thank you,
    Best regards,

    Audrey

    #1307390

    Hi,

    Glad to know that it is working. It should work fine even when the file compression settings are enabled. We just disabled it temporarily so that the changes will be immediately visible.

    Best regards,
    Ismael

    #1307413

    Hi Ismael,

    I enabled the file compression settings and it works fine !
    Thank you very much,

    Have a good day,
    Best regards,

    Audrey

    #1307511

    Hi Audrey,

    Great, I’m glad that you got it working. Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

    #1308086

    Hi,

    Yes you can close the topic,
    Thank you very much

    Have a good day
    Audrey

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Translate Cookie Consent Message Bar’ is closed to new replies.