How to Open a Popup on Visitor Conditions

You can use Nelio Popups to show a popup based on the visitor. This can be helpful when displaying different popups depending on the state of each visitor.

In this article, you’ll learn how to target visitors to show your popup.

Using Visitor Condition

When you are ready to use the Visitor condition, follow these steps:

  1. Go to Nelio Popups » All Popups and edit the one you want.
  2. In the editor sidebar, go to the Settings panel, and open the Conditions tab.
  3. Add or modify a condition by selecting ‘Visitor’.

The following options are available for a Visitor condition:

  • is logged in
  • has role
  • has commented
  • has viewed a number of pages
  • has viewed all selected pages

Let’s review each option.

is logged in

When you want to display a popup for visitors that are logged in your site, select ‘is logged in’ in the condition field.

Popup with a visitor condition set to 'is logged in'.
Popup with a visitor condition set to ‘is logged in’.

Then, popups will only be shown to visitors that are logged in.

has role

When you want to display a popup for visitors that have a particular role in your site, select ‘has role’ in the condition field.

Popup with a visitor condition set to 'has role'.
Popup with a visitor condition set to ‘has role’.

Select the roles in the last field of the setting. The available roles to select are those roles in your WordPress site.

Then, popups will only be shown to visitors that are logged in and have any of the roles set in the settings.

has commented

When you want to display a popup for visitors that have written an amount of comments in your site, select ‘has commented’ in the condition field.

Popup with a visitor condition set to 'has commented'.
Popup with a visitor condition set to ‘has commented’.

Select the amount of comments in the last field of the setting.

Then, popups will only be shown to visitors after they have commented as many times as you set in the settings.

has viewed a number of pages

When you want to display a popup for visitors that have visited an amount of pages of your site, select ‘has viewed a number of pages’ in the condition field.

Popup with a visitor condition set to 'has viewed a number of pages'.
Popup with a visitor condition set to ‘has viewed a number of pages’.

Select the amount of pages in the last field of the setting.

Then, popups will only be shown to visitors after they have seen the amount of pages set in the settings.

has viewed all selected pages

When you want to display a popup for visitors that have visited a set of pages of your site, select ‘has viewed all selected pages’ in the condition field.

Popup with a visitor condition set to 'has viewed all selected pages'.
Popup with a visitor condition set to ‘has viewed all selected pages’.

Select the pages in the last field of the setting.

Then, popups will only be shown to visitors after they have seen all the selected pages set in the settings.


After setting the condition, save the popup and then it will open if the condition is met.