跳到主要内容

404

404 template 渲染当客户输入无效商店 URL 时显示的页面内容。

位置

404 template 位于 theme 的 templates 目录下:

└── theme
├── layout
├── templates
| ...
| ├── 404.liquid
| ...
...

内容

404 template 没有推荐使用的对象。但该 template 应向客户清楚说明其所访问的页面不存在。

您应提供明显的后续操作选项。例如,可以添加指向热门页面的链接、帮助客户查找内容的搜索栏,或引导客户返回首页或专辑页继续浏览的链接:

<h3>404 Page not found</h3>
<a href="{{ routes.root_url }}">Take me home</a>