How to restrict sections to certain page templatesSections can be limited based on the template type.
You can do this with the "templates" attribute in the schema - eg. "templates": ["page", "collection"].
Another handy trick is to define the section in your json file without including the presets attribute. This will limit the section to appearing only on that specific template.
The upside is that your merchant can still hide/show, drag and drop the section. The downside is that they can’t delete it or add another one from the “Add section” menu.
Thanks to Anne Thomas for inspiring this week's tip.