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.
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;}
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.