How to set Popup Closing Classes

Popup Closing Classes gives an opportunity to close the popup via clicking on any element inside the content of the Popup.

There are 2 options to set the class.

First option

1. Go to your WordPress Dashboard and select the proper Popup with an editor.

2. Copy/Paste the following link  <a href="#" class="sg-popup-close">Close Popup</a>  into your editor.

Where:

The class name is  sg-popup-close

Class text is Close Popup (feel free to change the text according to your needs).

Take consider, instead of the text you can insert your own link, image, or any HTML element.

Second option

This option gives you an opportunity to set the duration (in days) not to show the Popup.

Take consider that you can set the time according to your needs (from 1 day).

1. Go to your WordPress Dashboard and select the proper Popup with an editor.

2. Copy/Paste the following button <button class="sg-popup-dont-show-30">Close Popup</button>  into your editor.

Where:

The class name is  sg-popup-dont-show-30 (30 is duration (in days) not to show the Popup to the same user)

Class text is Close Popup

An example

Thus, if you click on the button Close Popup, it will close the popup and it will not be shown for the next 30 days.