Index

The index template is the store's homepage, found at the root URL (/). The homepage is often the first impression customers get of the store, The index template offers various configuration options for merchants to share their story.

image.png


Directory

The index template is in the templates folder of the theme:

└── theme
├── layout
├── templates
| ...
| ├── index.json
| ...
...

Usage

When using the index template, you should know the differences between JSON and HTML templates.

JSON vs. HTML

Both JSON and HTML index templates allow store owners to add and remove sections with the theme editor. While HTML templates offer this capability, the JSON template (index.json) is generally preferred due to its advantages:

  • JSON templates give merchants more freedom to add, delete, and reorder sections, including app sections.
  • JSON templates keep their own data, reducing the data in settings_data.json and improving the theme editor's performance.
Was this article helpful to you?