redirect to easyfancbox from js/jquery

Your Account / Forums / Easy FancyBox Pro / redirect to easyfancbox from js/jquery

  • Author
    • July 7, 2019 at 9:53 pm #15331

      I would like to redirect to a page based on user input, and as part of the redirect open a pop up on the target page. How can I call easyfancybox pro from my script to open the pop up on the page?

    • July 7, 2019 at 9:53 pm #15339

      Hi Russell, you can make FancyBox open on specific URL hashes. Assuming you already have your popups ready on a particular page and each one can be opened by clicking a specific link on that page, follow the following extra steps:

      1. Go to Settings > Media and find the option called Open on page load under Miscellaneous / Auto popup. Set this to Link with ID matching URL hash and save settings.
      2. Go back to the page/post where your popups should appear and if the media/popup links do not already have a unique ID (for inline content) then give each a unique ID, like id=”popup1″, id=”popup2″. Note that if your popups are inline content popups, then they should already have a unique ID and you do not have to do this step.
      3. Now test each popup by visiting your page in an anonymous browser window with #popup1 or #popup2 etc. appended to the URL. Each time, the corresponding link should be triggered, automatically opening the corresponding popup.

      Redirect your users to these URLs (with different hash after them) to make the get a specific popup.

      Let me know if you need more information or help. You can send me the page URL if you want via so I can take a look.

  • You must be logged in to reply to this topic.