简体   繁体   English

自定义模板在 shopify 的模板后缀部分不可见

[英]Custom template doesn't visiable in the template suffix section in shopify

I have added a new custom template like page.about.liquid in the template folder.我在模板文件夹中添加了一个新的自定义模板,例如page.about.liquid But this template is not visible on Template suffix section.但是这个模板在Template suffix部分不可见。 screenshot attached below.下面附上截图。 Can anybody help me here?有人可以在这里帮助我吗? https://www.screencast.com/t/hJGH3VzN https://www.screencast.com/t/hJGH3VzN

https://www.screencast.com/t/PLdBPiuYp 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>

As per Shopify documentation , only templates present in your published theme will be available in the Theme templates section.根据Shopify 文档,只有您发布的主题中存在的模板才会在主题模板部分中可用。

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.只有您发布的主题中存在的模板才会在主题模板部分中可用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM