自定义模板在 shopify 的模板后缀部分不可见
Custom template doesn't visiable in the template suffix section in shopify
我在模板文件夹中添加了一个新的自定义模板,例如 page.about.liquid
。但是这个模板在 Template suffix
部分是不可见的。下面附上截图。有人可以帮我吗?
https://www.screencast.com/t/hJGH3VzN
https://www.screencast.com/t/PLdBPiuYp
{% include 'page-header', title: 'About Us' %}
<section class="about section">
<div class="container">
<div class="row">
<div class="col-md-6">
<img class="img-fluid" src="{{settings.about_img | img_url: '1920x'}}">
</div>
<div class="col-md-6">
{{page.content}}
</div>
</div>
</div>
</section>
根据 Shopify documentation,只有您 已发布 主题中存在的模板才能在主题模板部分中使用。
The Theme templates section won't appear on the corresponding page
unless your theme has more than one template. If you don't see the
Theme templates section after creating a new template, it's possible
that you have created a template of a different type. For example, you
might have created a page template instead of a product template.
Only templates present in your published theme will be available in
the Theme templates section.
我在模板文件夹中添加了一个新的自定义模板,例如 page.about.liquid
。但是这个模板在 Template suffix
部分是不可见的。下面附上截图。有人可以帮我吗?
https://www.screencast.com/t/hJGH3VzN
https://www.screencast.com/t/PLdBPiuYp
{% include 'page-header', title: 'About Us' %}
<section class="about section">
<div class="container">
<div class="row">
<div class="col-md-6">
<img class="img-fluid" src="{{settings.about_img | img_url: '1920x'}}">
</div>
<div class="col-md-6">
{{page.content}}
</div>
</div>
</div>
</section>
根据 Shopify documentation,只有您 已发布 主题中存在的模板才能在主题模板部分中使用。
The Theme templates section won't appear on the corresponding page unless your theme has more than one template. If you don't see the Theme templates section after creating a new template, it's possible that you have created a template of a different type. For example, you might have created a page template instead of a product template.
Only templates present in your published theme will be available in the Theme templates section.