Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1418460

    I need to have these two in two languages. How to set it?

    #1418464

    I 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!

    #1418584

    Hi,
    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,
    Mike

    #1418591

    Ok. A question: Does the browser detect the user’s origin and take it to the Italian or English site?

    #1418595

    Hi,
    No I don’t think so, I see that you are using WPML, try asking them if there is a why that their plugin does that, it might be an option in the plugin but I don’t know.

    Best regards,
    Mike

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Two languages-two cookie and privacy policies’ is closed to new replies.