【问题标题】:BigCommerce Stencil Custom Page template not appearingBigCommerce Stencil 自定义页面模板未出现
【发布时间】:2020-07-30 22:59:08
【问题描述】:

在页面生成器中,我添加了一个名为“关于我们”的页面,其 url 为“/about-us/”

我一直按照此处的说明进行操作

https://developer.bigcommerce.com/stencil-docs/storefront-customization/custom-templates

以便为该页面制作自定义模板。

我在 templates/pages/custom/page 中创建了一个名为 about-us.html 的文件,内容如下:

<h1>About Us Page Test</h1>

我的 .stencil 文件如下所示

{
  "normalStoreUrl": "my url",
  "accessToken": "my access token",
  "port": "3003",
  "customLayouts": {
    "brand": {},
    "category": {},
    "page": {
      "about-us.html": "/about-us/"
    },
    "product": {}
  }

}

我已经停止并重新运行“模板启动”,但每次我访问 localhost:3003/about-us/ 时它只显示正常页面而不是我构建的自定义模板。

我有什么遗漏吗?这是将页面构建器与模板结合使用的问题吗?

【问题讨论】:

    标签: bigcommerce


    【解决方案1】:

    我假设您还没有为您的页面设置自定义模板。

    转到网页并编辑您的“关于我们”页面,然后查找“模板布局文件”下拉菜单。如果设置正确,您的自定义模板应该会出现在那里。

    【讨论】:

    • 我在本地运行它,所以我没有主题编辑器可以使用。在我执行系统重新启动后,该问题得到解决。不知道为什么停止和重新启动 stencil 不能解决问题。
    【解决方案2】:

    在执行完整的系统重新启动后,该问题已得到解决。我不确定为什么停止和重新启动 stencil 不能解决这个问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-06-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-10-26
      相关资源
      最近更新 更多