• Resolved mguirautekapsicum

    (@mguirautekapsicum)


    Hello,

    First of all thanks a lot for your Hustle add-on ! It’s very easy to use it and user-friendly.

    We are trying to display a popup only on the French version on the website https://www.flex-on.fr/. The English version is https://www.flex-on.fr/?lang=en and the German one is https://www.flex-on.fr/?lang=de (we are using WPML 4.5.5.).

    How can I display the popup only in the French Version of the website ? I try to use the visiblity section with “specific urls” but I can’t find a way.

    Thanks for your help,
    Best regards?
    Marie

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Laura – WPMU DEV Support

    (@wpmudev-support8)

    Hi @mguirautekapsicum

    I hope you’re well today!

    The French version is the one without URL parameters (language switcher in URL) right?

    If the popup is meant to show only on homepage then there are two ways to set it. You’d need to add one “Specific URL” condition and set it

    1. either to “All URLs except”, adding both English and German URLs (one per line) there

    2. or to “Only these URLs”, adding only the “https://www.flex-on.fr” as URL

    If this doesn’t work, could you please:

    1. take a screenshot of current “Visibility” settings of the popup in question and share it with us here?

    2. and also export the popup and share it with us too? To share popup it’s best to upload exported file to Google Drive, Dropbox or similar account and post direct link to it in response below.

    Best regards,
    Adam

    Thread Starter mguirautekapsicum

    (@mguirautekapsicum)

    Hello,

    Thanks for your quick answer!

    Yes, The French version is the one without URL parameter :
    home page : https://www.flex-on.fr/
    regular page : https://www.flex-on.fr/etriers-green-composite/
    woocommerce product page : https://www.flex-on.fr/produit/sticker-flex-on/

    we would like the newsletter popup to be on every French web page – including the regular pages, the articles, the articles categories, the woocommerce product, the woocommercer categories… and not only the homepage.

    Is it possible ?

    Could we do someting like :

    IF ( Urlpage NOT CONTAINS “lang=en” ) OR ( Urlpage NOT CONTAINS “lang=de” )
    THEN : Show popup

    English product page : https://www.flex-on.fr/produit/sticker-flex-on/?lang=en
    English regular page : https://www.flex-on.fr/gc2-stirrups/?lang=en

    German product page : https://www.flex-on.fr/Produkt/magnetsticker-steigbugel-green-komposit-aluminium/?lang=de

    or could we use some kind of regex in the “specific url” item like “*lang=(en|de)*” in the visibility section https://drive.google.com/drive/folders/1CDmPcgkr8HaPL0DiUbsdZpagrhvkhOL7?usp=sharing ?

    Thank you again for your help!
    Best regards,
    Marie

    Plugin Support Imran – WPMU DEV Support

    (@wpmudev-support9)

    Hello @mguirautekapsicum !

    That’s clear now, thank you for the additional details 🙂

    I’ve just tested, and it will work if you set it the following way in Hustle’s visibility rules (based on the algorithm you’ve shared):

    – set to: Show when all conditions match
    – add a “Specific URL” condition
    – set the condition to “All URLs except”
    – inside the condition add:

    *lang=de*
    *lang=en*

    – test

    On my site it works fine and as expected, the popup only shows if there’s no lang parameter. Probably you can just add *lang* and it should also work.

    Possible alternative, not exactly that, but may work: there’s a “Visitor’s country” condition as well.

    Best regards,
    Pawel

    Thread Starter mguirautekapsicum

    (@mguirautekapsicum)

    Hello,

    Thanks for your help !
    Yes the *lang=de* *lang=en* solution works perfectly.

    Thanks again !
    Best regards,
    Marie

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Hustle WPML’ is closed to new replies.