# Popups Settings

{% embed url="<https://www.youtube.com/watch?v=aMeUQDG2Gxs>" %}

On the Popups tab, you can enable the site-wide Popup and configure its basic settings:

<figure><img src="https://353263333-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDPE9netawUH7O_3vVu%2Fuploads%2FqAEyeYHkUJ7Xpa69S3zk%2FPopup%20TO%20-%20Main.png?alt=media&#x26;token=06e7b156-0cdb-47d9-a3c7-3c155b8c4a94" alt=""><figcaption></figcaption></figure>

{% hint style="success" %}
These settings are general and different popups for any page can be selected in the settings of the page itself.
{% endhint %}

### Popup

When Popup is enabled Modal window is displayed on the sitewide in accordance with the triggers:

<figure><img src="https://353263333-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDPE9netawUH7O_3vVu%2Fuploads%2F8NreJOCl2Jlqx2cvqymi%2FPopup%20TO%20-%20Popup%20enabled.png?alt=media&#x26;token=1be579e0-e447-4407-b507-f006044f5dad" alt=""><figcaption></figcaption></figure>

### Creating Popup windows

To create new Popup you need to go **Dashboard > Popups > Add new.**

{% content-ref url="../content/popups" %}
[popups](https://docs.stylemixthemes.com/consulting-theme-documentation/content/popups)
{% endcontent-ref %}

### **Select Popup**

You must select one of the published [popups](https://docs.stylemixthemes.com/consulting-theme-documentation/content/popups) to display throughout the site.&#x20;

### **Triggers**

Trigger rules control the timing for when the popup displays. It is required to choose an action to make the popup open.

#### On Page Load(s)

<figure><img src="https://353263333-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDPE9netawUH7O_3vVu%2Fuploads%2FqnIGpRJQr0CPVU8nanUp%2FPopup%20TO%20-%20one%20page%20loads.png?alt=media&#x26;token=eafcd956-0ef6-4616-b741-d35da64e255e" alt=""><figcaption></figcaption></figure>

The Popup modal window appears after waiting X amount of time when the Page is loaded. It has two options:

* **Delay** - Show Popup window after X amount of time (in seconds) when Page is loaded.
* **Rerun** - Show Popup window again after X period of time.

#### After Inactivity Time

<figure><img src="https://353263333-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDPE9netawUH7O_3vVu%2Fuploads%2FFt4W9tZiX1EzYKuomqwA%2FPopup%20TO%20-%20after%20inactivity%20time.png?alt=media&#x26;token=0b64db15-e822-405d-abb2-be290af6ecf9" alt=""><figcaption></figcaption></figure>

The Popup modal window appears after waiting X amount of time User inactivity. It has two options:

* **Delay** - Show Popup window waiting X amount of time (in seconds) after User inactivity.
* **Rerun** - Show Popup window again after X period of time.

#### On Page Exit Intent

<figure><img src="https://353263333-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDPE9netawUH7O_3vVu%2Fuploads%2F6smsvsuCiXwsR5zrpvU7%2FPopup%20TO%20-%20On%20Page%20Exit%20Intent.png?alt=media&#x26;token=c07237cc-6786-457f-b317-8cac628118e2" alt=""><figcaption></figcaption></figure>

The Popup modal window appears when user’s mouse activity indicates intent to exit the page. It has two options:

* **Delay** - Show Popup window after X amount of time (in seconds) when Page is loaded.
* **Rerun** - Show Popup window again after X period of time.

#### In Date Period

<figure><img src="https://353263333-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDPE9netawUH7O_3vVu%2Fuploads%2FvDunWblugZ8opJvp1SRq%2FPopup%20TO%20-%20On%20date%20period.png?alt=media&#x26;token=b53c792a-24fe-4008-907d-ae427571f854" alt=""><figcaption></figcaption></figure>

The Popup modal window appears in the selected Date period. It has four options:

* **Delay** - Show Popup window after X amount of time (in seconds) when Page is loaded.
* **Rerun** - Show Popup window again after X period of time.
* **Show from the Selected Date** - The Popup window will be displayed from the specified date.
* **Show until the Selected Date** - The Popup window will be displayed until the specified date.

#### In Time Period

<figure><img src="https://353263333-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDPE9netawUH7O_3vVu%2Fuploads%2FdOW87lOjFZoCD7oB3Wlu%2FPopup%20TO%20-%20On%20time%20period.png?alt=media&#x26;token=2734c826-3ed2-46af-8881-bb13d9f73324" alt=""><figcaption></figcaption></figure>

The Popup modal window appears in the selected Date period. It has four options:

* **Delay** - Show Popup window after X amount of time (in seconds) when Page is loaded.
* **Rerun** - Show Popup window again after X period of time.
* **Show from the Selected Time** - The Popup window will be displayed from the specified time.
* **Show until the Selected Time** - The Popup window will be displayed until the specified time.

{% hint style="warning" %}
**Note:** Popups cannot be displayed more than once if the page is not reloaded or re-entered.
{% endhint %}

### Animation

Popup’s entrance animation such as fade and zoom that can be chosen from the dropdown selections.

### Responsive Rules

It is possible do not show the popup if the width of the browser window in the device is equal or less than selected option.

### Control Popup by Manual Triggering

Popups can be triggered manually using dynamic links. Any element can use a unique ID selector to manually trigger a popup when that element is clicked. By following steps below to open Popup window by manual triggering:

* Copy unique ID of Popup window:

<figure><img src="https://353263333-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDPE9netawUH7O_3vVu%2Fuploads%2FkURM7KKbNXcYHMeEmLWp%2FPopup%20-%20shortcode%20copied.png?alt=media&#x26;token=cae1c441-f44e-4517-a386-95b84173ffb5" alt=""><figcaption></figcaption></figure>

* While editing page add copied ID to the element:

<figure><img src="https://353263333-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDPE9netawUH7O_3vVu%2Fuploads%2FANMj7VqI0abWeRlaes0N%2FPopup%20TO%20-%20button%20ID.png?alt=media&#x26;token=b301bbb0-b873-44d2-b82a-6e6fb7002c25" alt=""><figcaption></figcaption></figure>

* The Popup window appears when the element clicked.

<figure><img src="https://353263333-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDPE9netawUH7O_3vVu%2Fuploads%2FCbfP9NeBc2c9VzFekkYP%2Fchrome-capture-2022-10-3.gif?alt=media&#x26;token=b31aa1ab-1e62-4f63-80c7-5da57dfce799" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
When triggering a popup from a custom selector, please note that the element doesn’t have to be a “link”. A normally non-clickable element, such as plain text, can be clicked to generate the popup as well.
{% endhint %}

To create or import Prebuilt Popups follow the page below:

{% content-ref url="../content/popups" %}
[popups](https://docs.stylemixthemes.com/consulting-theme-documentation/content/popups)
{% endcontent-ref %}
