Skip to main content
Hidden content rules remove products, pages, or blog articles from customer-facing surfaces without changing their status in Shopify. Each rule targets one resource type and one surface, and hides every item that matches its conditions on that surface only. Use hidden content rules when an item should stay published in Shopify (for pricing, checkout, direct links, or SEO) but should not appear in discovery. Typical cases include suppressing accessories from search, keeping legacy SKUs out of collection pages, and hiding internal help pages from site search. You can also prevent draft blog posts from surfacing in recommendation blocks.

How hidden content rules work

Each rule has:
  • A resource type — the kind of item the rule targets. Select Product, Page, or Article.
  • A surface — the customer-facing area the rule applies to. Products support Search, Collections, and Recommendation blocks. Pages and articles support Search and Recommendation blocks only, because they don’t appear on collection pages.
  • Conditions — a filter group that selects the items to hide. Products use catalog attributes; pages and articles use a fixed set of content fields plus any metafields you reference.
  • An enabled toggle — turn the rule on to apply it, or leave it as a draft while you configure conditions.
When a rule is enabled, Layers evaluates its conditions and marks matching items as ineligible for the selected surface. Enabling, disabling, editing, or deleting a rule recomputes eligibility, so changes take effect once the recomputation completes. Hidden content rules are additive across a surface. An item is hidden from a surface when any enabled rule for its resource type and that surface matches it. Rules never override each other, and there is no priority order. Product rules never affect pages or articles, and content rules never affect products.
Hidden content rules affect discovery only. Items remain published, addressable by handle, and available at their storefront URL. To also block direct access, unpublish or archive the item in Shopify.

Surfaces

Select one surface per rule. Create separate rules if you need to hide the same items from more than one surface. Search hides matching items from search results and autocomplete suggestions. Available for products, pages, and articles. Collections hides matching products from collection (browse) pages. Available for products only. Recommendation blocks hides matching items from recommendation and content blocks rendered outside of search and browse. Available for products, pages, and articles. Because each rule targets exactly one surface, you can hide an item from search while keeping it visible in a hand-curated block, or the other way around. Search and blocks eligibility are independent.

Conditions

Conditions are built with the same query-builder used elsewhere in the dashboard. You can combine any number of rules with AND / OR logic.

Product conditions

Product rules can filter on anything you can filter a merchandising rule on. Common examples:
  • Attribute matching: hide products where product_type equals Accessory, or where a tag list contains internal.
  • Availability: hide products where inventory_quantity is 0 from recommendation blocks so out-of-stock items stop appearing in “you might also like.”
  • Price bounds: hide products with a price below a minimum from search to keep sample or placeholder listings out of results.
  • Vendor or brand exclusions: hide products from a specific vendor from a single surface while leaving them discoverable elsewhere.

Page and article conditions

Page rules expose a fixed set of fields: title, handle, and published_at. Article rules add tags, blog_handle, and author. Metafield fields appear automatically. When you select Page or Article, Layers lists every metafield it has seen on that resource in your store as a metafields.<namespace>.<key> field. Each field is typed from the Shopify metafield definition: booleans render as a checkbox, numbers as a number input, dates as a date picker, and list.* metafields as multi-value. Metafields already used by a saved condition stay selectable even if no synced page or article currently carries them. The recommended pattern is a boolean metafield you set in Shopify on the pages or articles you want to exclude:
  1. In Shopify, define a metafield on the page or article resource. For example, layers.hide_from_search with type Boolean.
  2. Set the metafield to true on the pages or articles you want to hide.
  3. In Layers, create a hidden content rule for that resource type, target Search, and add a single condition metafields.layers.hide_from_search = true. The field appears in the condition builder once at least one page or article has the metafield set.
This keeps the pages and articles indexed by Shopify’s own search and included in sitemap.xml, while removing them from Layers surfaces. Shopify’s built-in Hide from search engines and sitemap setting (seo.hidden) removes the item from both. Use a metafield-driven hidden content rule when you only want to hide from Layers.

Preview

The rule editor includes a preview panel for product rules. Select a product from your catalog, and Layers evaluates the conditions currently in the editor against that product. The panel shows whether each condition matched and whether the rule would hide the product on the selected surface. Preview is not available for page or article rules.

Creating a hidden content rule

  1. Open Configure → Hidden Resources in the dashboard.
  2. Click Create Rule.
  3. Give the rule a name and, optionally, a description.
  4. Under Applies to, select Product, Page, or Article.
  5. Select the surface the rule should apply to. The list is limited to surfaces the resource supports.
  6. Build the conditions that select the items to hide. For page or article rules, metafield fields appear automatically based on what has been synced.
  7. For product rules, use the preview panel to confirm the rule matches the products you expect.
  8. Toggle Enabled on when you’re ready to apply the rule. Draft rules stay saved but do not affect customer-facing results.
Editing an enabled rule triggers a recomputation of eligibility for the affected resource type and surface. Depending on catalog size, matching items may take a short time to disappear from live results after you save.

Managing rules

The Hidden Resources index page lists every rule with its name, status (Published or Draft), surface, and the resource it applies to. From the list you can:
  • Toggle a rule between enabled and disabled without editing it.
  • Open a rule to edit its name, description, resource type, surface, or conditions.
  • Delete a rule you no longer need.
Disabling a rule removes its effect once eligibility recomputes; deleting a rule does the same and cannot be undone. Changing a rule’s resource type clears its conditions, because the available fields differ between products, pages, and articles.

Hidden content rules vs. request transforms

Both features can remove items from results, but they run at different times and are best suited to different use cases:
  • Hidden content rules are evaluated against your catalog and content before requests are served. They are the right choice when a set of items should always be hidden from a surface regardless of who is searching or what they typed. Because eligibility is precomputed, they have no per-request cost.
  • Request transforms run at query time. They can inject filters, override sort orders, or otherwise mutate a request based on the shopper’s context: channel, geo, customer segment, or applied filters. Reach for a request transform when the items to hide depend on the request itself. Examples include hiding web-only products from mobile-app traffic, or hiding out-of-stock items only when the shopper sorts by “Best Sellers.”
Request transforms apply to product surfaces. For content, use hidden content rules. You can use both together. Hidden content rules define the baseline of what never appears on a surface; request transforms then tailor the remaining catalog to the shopper.

See also