• Resolved kcomphlint

    (@kcomphlint)


    We have a link/button in the lower corner of our site that we use to open the popup. Is there a way to make the same button close the popup if it is open?

Viewing 1 replies (of 1 total)
  • Bel

    (@belimperial)

    Hello @kcomphlint

    Thank you for getting in touch.

    Yes, you can use a shortcode in the page content to allow you closing the popup. Here’s what you can use:

    [popup_close tag="button" classes="custom_button"]Close[/popup_close]

    PS: You can replace the tag to any of the following:

    • a
    • button
    • div
    • span

    Could you please add classes and custom CSS to style the button?

    Here’s how it will display in the page content:

    https://share.getcloudapp.com/9ZumJE6A

    We hope that helps. Could you give it a try, and let us know how it goes?

    Thank you!

Viewing 1 replies (of 1 total)

The topic ‘Use same trigger to open and close popup’ is closed to new replies.