Show or hide menu items by customer tag, page or market
Each menu item can have its own rules for who sees it. Use them to show a Wholesale link only to wholesale customers, hide a promo on the cart page, or keep a link to a local collection in one market.
There are three kinds of rule. Each comes as a pair: one to show the item only where it matches, one to hide it where it matches.
| Rule | Show on… | Hide on… |
|---|---|---|
| Customer tags | only customers with one of these tags | customers with one of these tags |
| Pages | only on these pages | on these pages |
| Markets | only in these markets | in these markets |
They work on any item: a main menu item, or an item inside a mega menu, tab or tree. Hiding an item hides everything under it too.
Open the rules
Section titled “Open the rules”-
Select the item
Section titled “Select the item”In the Layers tree, click the item. Its card opens under the tree.
Click the item in the preview, then the pencil icon.
-
Scroll to the visibility options
Section titled “Scroll to the visibility options”Scroll the item’s options down to Show on markets, Hide on markets, Show on pages, Hide on pages, Show on customer tags and Hide on customer tags. They are near the bottom, below Enable schedule.


-
Set a rule
Section titled “Set a rule”Fill in one of the rules below, then click Save (or Save & Publish on a live menu). Leave a field empty to apply no rule.
Customer tags
Section titled “Customer tags”Show a link only to some customers, or keep it from them. Tags are the ones you give customers in Shopify admin (Customers).
- Click Show on customer tags or Hide on customer tags.
- Type a tag and press Enter or a comma. Add as many as you like.
- Click Done.
- Show on customer tags — the item appears only for a logged-in customer who has at least one of the tags. Visitors who are not logged in don’t see it.
- Hide on customer tags — the item disappears for customers who have at least one of the tags. Everyone else, including visitors who are not logged in, still sees it.
- Type the tag exactly as it is in Shopify, including upper and lower case.
Show or hide an item on chosen pages, for example hide a “Free shipping” link on the cart page.
- Click Show on pages or Hide on pages.
- In Select a page type, choose what you want to match, then add it.
- Repeat for more pages. They are listed on the right under Selected pages.
- Click Done.
The page types are:
-
Home and Search — the home page, or the search results page.
-
Product, Collection, Page and Blog — pick one or more from your store.
-
Url contains text — any page whose address contains the text, for example
/cartor/pages/sale. Use letters, numbers,_and/. -
Show on pages — the item appears only on the listed pages.
-
Hide on pages — the item disappears on the listed pages and shows everywhere else.
Markets
Section titled “Markets”Show or hide an item per Shopify market, for example a link to a collection that only ships to the US.
- Click Show on markets or Hide on markets.
- Tick the markets and click Done.
- Show on markets — the item appears only in the ticked markets.
- Hide on markets — the item disappears in the ticked markets.
Markets come from Shopify Settings → Markets. To use a different menu per market instead of a few different items, see Create menus for each market.
When rules meet
Section titled “When rules meet”- Hide wins. If an item is in both Show on… and Hide on… for the same kind of rule, it is hidden there.
- Rules add up. An item shows only when it passes every rule you set: its schedule, its customer tags, its pages and its markets. For example, Show on markets: United States and Hide on pages: /cart shows the item to US shoppers everywhere except the cart.
- If you set Show on… and nothing else, the item is hidden everywhere that doesn’t match.
Check it
Section titled “Check it”Rules apply only on your live store, so the editor preview keeps showing every item. To check your work:
- Markets — use the All markets selector above the preview to see the menu as shoppers in one market see it.
- Customer tags and pages — open your store in a private window (not logged in), then log in as a customer with the tag, and visit the pages you set.
Menu changes can take a moment to appear after you publish; reload the page.
Related: Schedule the display of a menu item shows an item only between two dates.
