[Hustle Pro] Popup close

Hello,
i don’t understand how to solve my problem?
I ask if the user is over 18?
If the user clicks yes, the popup closes and the site https://edelschwarz.it/wordpress-2020/ will show.
If the user clicks no, this page opens in a new Tab https://gompmalm.it/

How can I solve this?

Thanks and greetings from italy
Lukas

  • Adam
    • Support Gorilla

    Hi Lukas

    I hope you’re well today and thank you for your question!

    You can achieve it with a bit of advanced configuration of the popup. The steps to set it up would be like this:

    1. create “informational” popup (not “email opt-in”:wink:

    2. in “Content” add your message and enable “Call to Action” and “Never see this again” link

    3. for “Call to action” add a label “No”, a link to https://gompmalm.it in “Redirect URL” option and select “open link in new tab”.

    4. for “Never see this again” link add “Yes” as “link text”

    5. in “Visibility” section make sure that there’s no “conditions” added so the popup would be then appearing everywhere on your site

    6. in “Behavior” section

    – for “popup trigger” select “time” and set “0 seconds” delay
    – in “Additional Closing Methods” make sure that all three options are disabled (gray)
    – in “Closing behavior” uncheck “pop-up closed by teh visitor by clicking on “x” icon and for “Behavior” right below set “Keep showing this message”
    – in “Additional Settings” set “Disable” for “Page Scrolling”
    – in “Additional Settings” set “Keep showing this module” for “Visibility after CTA conversion” option

    7. you’d need to remove the “X” closing button so in “Appearance” section enable “Custom CSS” and add following code:

    .hustle-button-close{display:none;visibility:none;}

    As a result, a popup should show on all the pages of your site automatically and the only option to close it would be to click “YES” which acts as “never see this popup again” but clicking anywhere else wouldn’t close the popup, there’d be no “close” button and clicking on “NO” would open the defined site in a new tab.

    I’ve also attached an example popup set like this to this post so you can import it to your site and test. To do it, first download the file and then rename it from “popup.txt” to “popup.json” and then import via “Hustle -> Pop-ups -> Import” option.

    Please note: this is a “raw” popup and while it should work the way you want, it might still need quite a bit of design customization (via “Appearance” settings and/or custom additional CSS) to make it look better – but “function-wise”, it should do the work.

    Best regards,
    Adam