Go live
Feature switches
Turn features like filters, forms and sample labels on or off.
src/config/features.ts lets you turn parts of the website on or off without touching any page code. Set a switch to true to show the feature, or false to hide it.
src/config/features.ts
export const features = { treatmentFilters: true, demoLabels: false, newsletter: true,} as const;Switches in the Spa template
| Switch | What it controls |
|---|---|
treatmentFilters | Category and duration filters on the treatment menu |
journalSearch | Search and category filters on the journal (blog) page |
newsletter | Newsletter sign-up in the footer |
bookingForm | The booking enquiry form |
contactForm | The contact form |
demoLabels | Small “Sample content” labels on demo prices, team, reviews and articles |
articleTableOfContents | The table of contents on journal articles |
Other templates have switches that fit their content. Each one is described in a comment above it in the file.