Skip to content

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.

Steps for the
  1. In the Layers tree, click the item. Its card opens under the tree.

    Click the item in the preview, then the pencil icon.

  2. 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.

    The new editor with the item Products selected: its card scrolled down to the Show and Hide on markets, Show and Hide on pages and Show on customer tags fields, each outlined in red with an arrow
    The classic editor: the item's options scrolled down to the Show and Hide on markets, pages and customer tags fields, each pair outlined in red with an arrow
  3. 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.

Show a link only to some customers, or keep it from them. Tags are the ones you give customers in Shopify admin (Customers).

  1. Click Show on customer tags or Hide on customer tags.
  2. Type a tag and press Enter or a comma. Add as many as you like.
  3. Click Done.
The Edit customer tags dialog with an empty tag field and the hint Press Enter or use a comma to add a tag, outlined in red
  • 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.

  1. Click Show on pages or Hide on pages.
  2. In Select a page type, choose what you want to match, then add it.
  3. Repeat for more pages. They are listed on the right under Selected pages.
  4. Click Done.
The Select pages dialog: Select a page type set to Home, an Add home page button, and an empty list on the right, outlined in red

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 /cart or /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.

Show or hide an item per Shopify market, for example a link to a collection that only ships to the US.

  1. Click Show on markets or Hide on markets.
  2. Tick the markets and click Done.
The Select markets dialog listing the store's markets with a checkbox each, outlined in red
  • 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.

  • 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.

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.