Nelio Popups makes it easy to set where you want your popups to appear in your site. There are several options to customize the pages where to show your popups. In this article you will see all of them.
Table of Contents
Setting Up Popup Locations
When you are ready to set the popup locations, follow these steps:
- Go to Nelio Popups » All Popups and edit the one you want.
- In the editor sidebar, go to the Settings panel, and open the Locations tab.
There you will find a selector with the following options:
- Show Everywhere
- Show on Selected Groups
- Let Each Page Decide
Let’s review each option.
By default, your popup is set to be shown everywhere on your site. This means that each visitor landing everywhere on your site will see the popup.
Show on Selected Groups
This is the most expressive way of defining popup locations. By selecting the ‘Show on Selected Groups’ option, you can define groups of conditions.
To add a new condition, click the ‘Add Condition’ button. This will add a new condition to the current condition group. Note that each condition makes the current group more restrictive, because all the conditions must be met in order to show the popup.
With respect the condition groups, the popup will be visible somewhere in your site if that location mets the conditions on at least one of the condition groups you defined in the popup location settings.
Here you have an example:
The popup with that location settings will display only on all posts with the Travel category and also in the home page of your site.
By combining conditions and condition groups you can establish complex location rules to display your popup wherever you need it.
The list of conditions that you can choose is the following:
- Content is
- Content is not
- Taxonomy is
- Taxonomy is not
Let’s review each condition.
Content is / Content is not
When you want to target a specific content to open the popup there, select the ‘Content is’ condition. When you want to target the opposite, then select ‘Content is not’. This conditions include a selector of content types and some common pages like the home page, the 404 page, your blog index, or the search results page.
When you select a post type, like Post in the next screenshot, you can then select an additional condition over that post type.
For each post type, you can select if you want to target the following:
- All items of that post type
- Selected items of that post type. In this case, a search field appears for you to choose the specific set of instances of that post type that you want to target.
- Items with a selected template. In case the post type has more than one template in your WordPress theme, you can target the instances that have one of the particular templates from a list.
- Items with selected taxonomy terms. In case the post type has taxonomies (categories, tags or custom taxonomies), you can select the terms for the taxonomy you want to target for that post type. Then, only the instances of the post type with the selected terms will display the popup.
Taxonomy is / Taxonomy is not
When you want to target all content tagged with terms of a taxonomy, select the ‘Taxonomy is’ option. When you want to target the opposite, select the ‘Taxonomy is not’ option.
In the list of options inside the ‘Taxonomy is’ or ‘Taxonomy is not’ options you have all the taxonomies defined in your site. This includes common taxonomies, like categories and tags, and custom taxonomies.
After selecting a taxonomy, you can decide if you want to target all terms for that taxonomy, or select a set of terms. In that case, you’ll need to select the set of terms for that taxonomy in a search field.
Nelio Popups allows you to target locations on your site where to display your popup by using URLs directly.
The following options are available for a URL condition:
- is equal to
- is not equal to
- does not include
- matches regular expression
Select ‘is equal to’ or ‘is not equal to’ options and type a complete URL to target exact URLs where to open the popup.
On the other hand, select ‘includes’ or ‘does not include’ and type a partial URL content to target URLs that contain or does not contain the partial URL content.
Finally, when you want to display a popup for visitors landing on an URL matching a regular expression, select ‘matches regular expression’. Then type the regular expression you want.
Let Each Page Decide
The third option when setting the popup locations is to let each page decide. When you select the ‘Let Each Page Decide’ option, each page is in charge of deciding if it will show the popup or not.
Therefore, you need to go edit each page you want. In the right sidebar of the page editor you will find a panel named Nelio Popups where you can select the active popups for that page amongst the following options:
- Auto Selection
- Manual Selection
Let’s review each one of these options.
By default, the selected option for each page is ‘Auto Selection’. This means that the set of active popups for that page is the one that results from applying the location rules set on each popup.
Therefore, the conditions to show the popups on that page are defined directly on each popup settings.
When you want to show a popup on a particular page, when editing the page select the ‘Manual Selection’ option in the ‘Active popups’ setting.
Then, in the search field add the popups that you want to be active on that page.
This setting allows you to overwrite any other setting set in the popups. In the previous screenshot, the only popup active in the page is ‘My popup’ with ID 14697. This popup will be active even if you indicated in the popup a set of location rules that do not include the current page.
When you select the ‘None’ option, no popup will display on the edited page. This is specially useful to fine-tune the locations of the popups. You can edit the settings of a popup defining a set of locations and then go to a particular page and select ‘None’ to avoid opening any popup there.
As you can see after reviewing all the settings related to popup locations, there are multiple ways of customizing where you want your popups to display.
Choose the options that fit your needs and then establish your rules on the popup settings or in the pages you want.