• Resolved jgdlemos

    (@jgdlemos)


    I created 2 pop-ups, one for each language. However, it’s either the french version shows up on both language versions of the site or the english version shows up. Can you help?

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

Viewing 8 replies - 1 through 8 (of 8 total)
  • Dear @jgdlemos ,

    Thank you for your message.

    Please, insert the following code in the first field of the custom JS. https://prnt.sc/tl7com

    This one for the English popup.

    var url = window.location.href;
    if (url.indexOf('/en') <= 0) {return false;}

    And this one for the French popup.

    var url = window.location.href;
    if (url.indexOf('/en') < 0) {return false;}

    Let us know if this helps.

    Thread Starter jgdlemos

    (@jgdlemos)

    Hi, the above code didn’t work. The French version of the pop up doesn’t show up on the French version of the site but shows up on the English version.

    Dear @jgdlemos ,

    Please, insert this code in case of French popup.

    var url = window.location.href;
    if (url.indexOf(‘/en’) > 0) {return false;}

    Let us know if it helps.

    Dear @jgdlemos ,

    How are you today?
    We are wondering whether the newly given code helped you.
    Please, let us know.

    Here it is again for your reference.

    var url = window.location.href;
    if (url.indexOf('/en') > 0) {return false;}
    Thread Starter jgdlemos

    (@jgdlemos)

    If I put this code on the French pop up, the English pop up doesn’t show up.
    If I put this one for the English popup:
    var url = window.location.href;
    if (url.indexOf(‘/en’) <= 0) {return false;}
    And this one for the French popup:
    var url = window.location.href;
    if (url.indexOf(‘/en’) < 0) {return false;}

    the French pop up doesn’t show up.
    Kindly check. Thank you.
    (As of writing, both codes are in place)

    Dear @jgdlemos ,

    Thanks for your message.
    Please, make sure that you have inserted the right code.
    Here is again the right one:

    `var url = window.location.href;
    if (url.indexOf(‘/en’) > 0) {return false;}

    Let us know if that helped.

    Dear @jgdlemos ,

    Hope you’re fine.
    Have you inserted the correct code? Does it work now?

    Dear @jgdlemos ,

    We haven’t heard back from you for 3 days.
    We’re marking this thread as resolved.
    Please, submit a new support thread if you need more help.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Pop up is the same for different languages’ is closed to new replies.