Support » Plugin: Popup Builder - Responsive WordPress Pop up - Subscription & Newsletter » popup WPML different languages not working

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Support Sygoos Support Team

    (@sygnoossupportteam)

    Hi @stevenvdh

    Thank you for contacting us.
    Please avoid mentioning a language when you create a popup.
    Then please set to “everywhere” in the settings, like this: https://prnt.sc/s7fsv2
    After, please add this code in the custom JS option (in the first box), here:
    https://prnt.sc/s7fuao
    The code:
    var url = window.location.href;
    if (url.indexOf(‘/fr’) > 0) {return false;}

    We advise our customers to do that when they are using the WPML plugin.
    Let us know once you do that.

    Thread Starter Steven

    (@stevenvdh)

    Hi there,

    Thanks for fast reply. I did as you explained, so both popups set to “everywhere”, and FR popup added the code as told… but still showing dutch plugin everywhere 😕

    Plugin Support Sygoos Support Team

    (@sygnoossupportteam)

    Hi @stevenvdh

    Thank you for your reply.
    Please try to change the code with this one in the text document:
    https://we.tl/t-EGULGItdJc
    Or else you can change this symbol ” with ‘ this one.

    Thread Starter Steven

    (@stevenvdh)

    Hi there,

    Ok with this code I can filter that dutch (NL) popup is not showing on FR version of website (with url ‘/fr’). I added your code to the NL popup. But now both popups are still showing on dutch version of website (with url ‘/’). The dutch standard website doesn’t have the language url ‘/nl’, so is there a way to add approximately same code to FR popup to tell it shouldn’t been shown on standard dutch website (so without without any language suffix in url)?
    Thanks for helping out!

    Plugin Support Sygoos Support Team

    (@sygnoossupportteam)

    Hi @stevenvdh

    Thank you for your reply.
    The WPML plugin works by changing the URL.
    So, that is why we have asked to add the code in the Dutch website so that it wouldn’t show the Franch version and you can do the same vise versa.
    Let us know in case of any questions.

    Thread Starter Steven

    (@stevenvdh)

    hi again,

    I did as youy asked, but I don’t know what code to add to french version of site, as the dutch version of site doesn’t have the suffix “/nl” in url (so dutch url is http://www.deneupruim.be and not http://www.deneupruim.be/nl).
    So how should code below look like for the other popup please to exclude showing on dutch version of website?

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

    Plugin Support Sygoos Support Team

    (@sygnoossupportteam)

    Hi @stevenvdh

    Could you please clarify if you did add the popups to “everwhere”?
    Also, it would be great if you could contacted us via email (support@popup-builder.com) so that you could share all the needed information in resolving the case.

    Thread Starter Steven

    (@stevenvdh)

    Hi there, For the moment I deactivated the popup on French version of website, because otherwise in Dutch version of website I see both popups layered.
    Ok I will send you email concerning this problem…
    Thanks for support!

    Thread Starter Steven

    (@stevenvdh)

    mail sent 😉

    Plugin Support Sygoos Support Team

    (@sygnoossupportteam)

    Hi @stevenvdh

    Thank you for contacting us via email.
    We had already answered you and will continue the conversation there.
    We will mark this thread as resolved.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘popup WPML different languages not working’ is closed to new replies.