【问题标题】:How to add new section to shopify page after .liquid file has been created创建 .liquid 文件后如何向 shopify 页面添加新部分
【发布时间】:2020-05-14 20:14:32
【问题描述】:

我刚刚创建了一个名为 how-it-works.liquid 的新 shopify 部分。我将进入customize theme 菜单并按add section,但即使文件存在于sections 文件夹中,新的section 也不存在。创建文件后如何将部分添加到部分列表中?

【问题讨论】:

    标签: shopify liquid


    【解决方案1】:

    如果您希望能够将版块动态添加到您的主页,您需要在版块设置中指定preset 属性。

    如果您缺少特定页面上的部分,那么您可能没有将其添加到模板中:

    {% section "how-it-works-or-whatever" -%}
    

    【讨论】:

      猜你喜欢
      • 2020-10-01
      • 1970-01-01
      • 1970-01-01
      • 2021-06-29
      • 2022-12-18
      • 2013-03-27
      • 1970-01-01
      • 2017-08-27
      • 1970-01-01
      相关资源
      最近更新 更多