• Resolved golnik

    (@golnik)


    Hi, I need to make the popup close when clicking a custom link/button in the content. I configured the popup to only open once per session, so clicking on that link needs to ensure it doesn’t open again. How can I achieve this?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author FirePlugins

    (@fireplugins)

    Hello Golnik,

    That’s easily done using HTML Data Attributes.

    Here’s the documentation page: https://www.fireplugins.com/docs/firebox/how-tos/how-to-trigger-a-popup-using-html-data-attributes/

    Example:

    <a href="#" data-fbox="123" data-fbox-cmd="close">Close popup</a>

    Where 123 is your Popup ID.

    Regards,
    FirePlugins Team

    Plugin Author FirePlugins

    (@fireplugins)

    I am closing this ticket as the above documentation and sample code solve the question you were facing, Golnik.

    Feel free to comment if you have any other questions.

    FirePlugins Team

    Thread Starter golnik

    (@golnik)

    Thanks so much this solved it on desktop, but I can’t get it to work on mobile?

    • This reply was modified 2 years ago by golnik.
    Plugin Contributor Stergos Zamagias

    (@stergosz)

    Hello @golnik,

    The button should work as long as a popup exists on the page.

    Can you confirm that a popup exists?

    If yes, please share the URL where you’re having issues on mobile.

    Regards,
    Stergos

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Close button behavior when clicking link’ is closed to new replies.