Skip to main content
The seller writes the policy text in Configure. The theme only shows it. Never write legal text into theme files.

Routes and fields

The paths differ. /privacy works on React, Vite and Liquid. On Nunjucks, use /privacy-policy. Footer links must match the theme type.

React, Vite, Liquid

All three policy pages use one file: templates/policy.json. It holds one section, usually main-policy. The section reads the URL and shows the matching text. Noir’s real section, in Liquid:
src/sections/main-policy/index.liquid
A small index.ts script next to it shows the article that matches the URL, and cleans the HTML before showing it.
The policy text is HTML. Clean it before you put it on the page. Never show it raw.

Nunjucks

The file name sets the page: templates/{name}.njk.
templates/privacy-policy.njk
Wrong, will not load: privacy.njk, refunds.njk, or links to /privacy and /refunds on a Nunjucks store. Footer:
autoescape is off in Nunjucks. Don’t put policy HTML inside attributes. See Nunjucks Pitfalls.

Empty policy

  • Show a short message, like “No policy added yet”.
  • Never make up placeholder legal text.

See also