Skip to main content Link Menu Expand (external link) Document Search Copy Copied

File structure

The whole theme is defined inside the theme folder by the following file structure:

Templates

The templates directory contains a theme’s template files, which control what’s rendered on each type of page.

Snippets

The snippets directory contains Liquid files that host smaller reusable snippets of code. You can reference these snippets throughout the theme with the liquid snippet tag.

Assets

The assets directory contains all of the assets used in a theme, including image, CSS, and JavaScript files. Use the asset_path tag to reference an asset within your theme.

Locales

The locales directory contains the locale files for a theme, which are used to provide translated content.

404.liquid

Required template for 404 error page

Robots.txt

Required file for robots.txt file for search engines

Theme.json

Contains the config for a theme