For the complete documentation index, see llms.txt. This page is also available as Markdown.

Sitemap manager

Hide a resource from search engines and sitemaps in Shopify

Shopify has a predefined metafield for all resources to hide a resource from search engines and sitemaps. This app embed will take advantage of this metafield to hide/show Shopify pages from store sitemap and search engines.

Before enabling the embed, create one raven per resource type you want to control. Each raven needs:

  • Resource — the type it controls (page, product, collection, article or blog)

  • Namespace seo and key hidden — Shopify's own predefined SEO metafield, which is what makes the setting take effect

  • Type number_integer — the widget writes 1 to hide and 0 to show

You then paste each raven's id into the matching slot in the embed's settings. The embed has one slot per resource type, and a raven's resource must match the slot you put it in — a product raven in the Collection slot silently controls nothing.

Settings

Setting
Purpose

Raven ID (Collection / Product / Article / Blog / Page)

One per resource type. Leave a slot empty to skip that type.

Admin email

The only customer who sees the widget.

How it works

Shopify reads a predefined SEO metafield when building your sitemap and when telling search engines whether to index a resource. The embed renders a small widget on the storefront that writes to that metafield through FieldsRaven — so hiding a page is a click on the page itself rather than a trip through the admin.

This feature is only suported for the following resource types: collection, product, article, blog, page

Go to "Ravens" page and click on "Create a new Raven"
Create a raven
Create a raven for each resource you want to hide/show

To enable the "Sitemap Manager" app embed, follow steps below:

Go to theme customizer
Click on App embeds
Make sure that FieldsRaven "Storefront Kit" is enabled and "Include AlpineJS" is checked
1) Enable "Sitemap manager" app embed 2) Copy & paste raven ids, make sure that the raven resource type match the type in the settings 3) Add admin email 4) Save!

After you login using the email you used in the settings as an admin email, you should be able to see this.

FieldsRaven Hide/Show from sitemap widget
FieldsRaven Hide/Show from sitemap widget when it's open

Note: when a resource is hidden from the sitemap, it won't appear in search results when customers use storefront search.

Last updated