• Resolved saniol

    (@saniol)


    I am trying to set up my site so that when users click a link to download something, they are required to enter an email. I assumed the Downloads Visibility Rule would accomplish this, but I’m not sure how it works. I’ve chosen the rule, but the popup appears on every page. How does it work?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hello @saniol

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

    There’s no any “downloads-specific” visibility rule or support in Hustle. If you do see “Downloads” in visibility conditions that would mean that there’s a custom post type “downloads” registered on your site.

    Hustle would pick-up custom post types so you can set whether a popup should appear there or not but the rules for them would work based on the same principle as for regular pages or posts.

    To achieve such “on click” behavior you’d want to go a bit different route then. First, you’d need to either find out an ID or a class name (as in CSS ID or class) of a link you want to trigger popup or add your own custom class to it.

    Then in “Behavior” settings of the popup, set “Pop-up Trigger” ption to “Click” and enable “click on existing element” option. In the “CSS selector” field enter that ID or a class name (prefixed with # or . depending whether it’s ID or class accordingly) and save.

    This would make popup show “on click” so if the ID/class is properly defined, it would make it work. Then, in addition to that you might want to set visibility rules to limit it to work only on certain pages/posts/under certain conditions – but that’s additional to that trigger configuration.

    Kind regards,
    Adam

    Hello @saniol

    I hope you are doing well!

    We haven’t heard back from you for a while now so we’ve marked this ticket as resolved. If you do have any followup questions or require further assistance feel free to reopen it and let us know here.

    Kind regards,
    Nastia

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How Does Downloads Visibility Rule Work?’ is closed to new replies.