Restrict a section to certain templates

We can restrict a section to certain templates by specifying those templates through the templates attribute.

For example:

"templates":[
"index","product"
]

This attribute accepts a list of strings that represent the page type.

404
article
blog
cart
collection
list-collections
customers/account
customers/activate_account
customers/addresses
customers/login
customers/order
customers/register
customers/reset_password
gift_card
index
page
password
policy
product
search

 

Back to blog