-
AuthorPosts
-
September 8, 2023 at 1:17 pm #1418460
I need to have these two in two languages. How to set it?
September 8, 2023 at 1:37 pm #1418464I mean; I have two website (ita eng); my question is: Open a user the website in Italian or the browser detects the country and opens the site directly in English?
Maybe is right to have only one cookies message and one privacy policy page.
BUT, here is IMPORTANT to have this BACK BUTTON that come back: if you are in Italian website HOME ITALIAN, if you are in English website HOME ENGLISH.Please try! Check!
September 9, 2023 at 8:34 pm #1418584Hi,
Your cookie bar message is only in English and it doesn’t look like WPML translates it, so the link in it to the privacy policy page was always the English link.
So I created two new classes lang-en & lang-it and add the text twice so one will always be hidden. You can adjust the test in one for your other language.<p class="lang-en" style="text-align: left;">This site stores cookies on your device in order to build a profile of your interests and show you relevant ads on other sites. By continuing to browse this site, you agree to the use and storage of cookies in accordance with our <a href="https://www.stilecatalini.it/en/privacy-policy-en/" style="color:#FFFFFF; text-decoration:underline;">Privacy Policy.</a> You can completely disable some or all cookies at any time through your advanced browser settings. For more information on disabling cookies, see <a href="https://cookies.insites.com/disable-cookies/" style="color:#FFFFFF; text-decoration:underline;">here.</a></p> <p class="lang-it" style="text-align: left;">This site stores cookies on your device in order to build a profile of your interests and show you relevant ads on other sites. By continuing to browse this site, you agree to the use and storage of cookies in accordance with our <a href="https://www.stilecatalini.it/it/privacy-policy-it/" style="color:#FFFFFF; text-decoration:underline;">Privacy Policy.</a> You can completely disable some or all cookies at any time through your advanced browser settings. For more information on disabling cookies, see <a href="https://cookies.insites.com/disable-cookies/" style="color:#FFFFFF; text-decoration:underline;">here.</a></p>
and then I added this css:
html[lang="it-IT"] #top .avia-cookie-consent .lang-en { display: none; } html[lang="en-GB"] #top .avia-cookie-consent .lang-it { display: none; }
now the correct link is shown depending on the language.
Best regards,
MikeSeptember 9, 2023 at 9:13 pm #1418591Ok. A question: Does the browser detect the user’s origin and take it to the Italian or English site?
September 9, 2023 at 10:27 pm #1418595 -
AuthorPosts
- The topic ‘Two languages-two cookie and privacy policies’ is closed to new replies.