-
AuthorPosts
-
June 21, 2021 at 10:52 am #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=sharingHow can I change the link according to the language of the site ?
Thank you very much,
AudreyJune 22, 2021 at 6:14 am #1306862Hey 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,
IsmaelJune 22, 2021 at 8:40 am #1306881Hi 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 !
AudreyJune 23, 2021 at 8:17 am #1307088Hi,
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,
IsmaelJune 23, 2021 at 8:58 am #1307093Hi 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
June 25, 2021 at 6:12 am #1307390Hi,
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,
IsmaelJune 25, 2021 at 8:54 am #1307413Hi Ismael,
I enabled the file compression settings and it works fine !
Thank you very much,Have a good day,
Best regards,Audrey
June 26, 2021 at 11:21 am #1307511Hi 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,
RikardJune 30, 2021 at 11:47 am #1308086Hi,
Yes you can close the topic,
Thank you very muchHave a good day
Audrey -
AuthorPosts
- The topic ‘Translate Cookie Consent Message Bar’ is closed to new replies.