How to close a Modal Popup on the Click of a Button or Text

What if you wish to allow users to close the popup when they click on some text or a button present on it?

You can do this too!

You can use the “SFUA-close-modal” class to do so.

All you need to do is:

1. Under the Content tab of Modal popup settings, select Type = Content.

2. Use the class within any HTML code that you wish to add.

Example

<span class=”sfua-close-modal”>Continue shopping</span>
Here, the modal will get closed when the user clicks on “Continue shopping”.

Have more questions? Submit a request