Target pages (popups) and Other pages (header)
Choose which pages show a popup, or which pages use the transparent header. Both fields work the same way: you enter a list of rules, one per line.
Where to find the field
Popups (Promo, Sign-up, Countdown promo, Age verification)
-
In the theme editor, open the popup section.
-
Under Conditions, set Where to show to Target pages.
-
The Target pages field appears below.
Header
-
Under Use absolute on pages, the header sits on top of the first section of the page instead of above it. This works well with a full-width banner or slideshow.
-
In the theme editor, open the Header section.
-
Under Use absolute on pages, check Enable, then uncheck All.
-
Check the page types you want: Home, Product, Collection, List collections, Blog.
-
For any other page, check Others. The Other pages field appears below.
How to write rules
Enter one rule per line. The popup or transparent header appears on a page if it matches any of your rules.
There are 2 kinds of rules.
1. Page type: matches every page of that type
| Page | Rule |
|---|---|
| Home page | index |
| Product pages | product |
| Collection pages | collection |
| Collections list page | list-collections |
| Blog pages | blog |
| Article pages | article |
| Pages created in Online Store → Pages | page |
| Cart page | cart |
| Search page | search |
| Policy pages | policy |
| Page not found | 404 |
| Account page | customers/account |
| Login page | customers/login |
| Register page | customers/register |
| Order details page | customers/order |
| Addresses page | customers/addresses |
| Reset password page | customers/reset_password |
| Activate account page | customers/activate_account |
2. Part of a URL: matches a specific page
Enter the part of the page's URL that comes after your domain, without the
| To target | Rule |
|---|---|
The Contact page (/pages/contact) | pages/contact |
One product (/products/blue-shirt) | products/blue-shirt |
One collection (/collections/sale) | collections/sale |
One blog (/blogs/news) | blogs/news |
Important: URL rules work on product, collection, blog, article and regular pages in popups. In the header, they only work on regular pages (
pages/...).
Tip: A URL rule matches any URL that contains it.
pages/contactalso matches/pages/contact-us. Write the full handle to target only the page you mean.
Examples
Show a popup on the home page, all product pages, the cart and the Contact page:
index
product
cart
pages/contact
Show a popup only on the Sale collection and one product:
collections/sale
products/blue-shirt
Use the transparent header on the cart page, the search page and the About page (header → Others → Other pages):
cart
search
pages/about
Troubleshooting
| Problem | Check |
|---|---|
| The popup shows everywhere | Where to show is still set to All pages. |
| A rule does nothing | Use lowercase and no / at the start: pages/contact, not /Pages/Contact. |
| A header URL rule does nothing | In the header, URL rules only work for pages/.... Use a page type instead, e.g. collection. |
| The popup shows on an extra page | A URL rule matched more than you meant. Write the full handle. |