首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >没有显示文本模式文本

没有显示文本模式文本
EN

Stack Overflow用户
提问于 2022-07-04 19:02:39
回答 1查看 145关注 0票数 0

我不明白为什么我的文本文件不能显示,这是部分/产品。液态的h1不会显示,它告诉我它认为它是空的,但是我不仅设置了默认的,而且当我进入编辑器时,它仍然不会显示的文本,注意: shopify让我保存文件没有错误

代码语言:javascript
复制
{% unless settings.Under_Product_Title == blank %}
  <h1>{{ settings.Under_Product_Title }}</h1>
{% endunless %}
        ....
    {% schema %}
    {
      "name": "Product pages",
      "settings": [
        {
          "type": "text",
          "id": "Under_Product_Title",
          "label": "Under Product Title",
          "default": "30 tablets (30 days)"
        }
      ]
    }
    {% endschema %}

在我的产品template.json中

代码语言:javascript
复制
    {
  "sections": {
    "breadcrumb": {
      "type": "breadcrumb",
      "settings": {
      }
    },
    "product": {
      "type": "product",
      "settings": {
        "Under_Product_Title": "30 tablets (30 days)!"
      }
    }
  },
  "order": [
    "breadcrumb",
    "product"
  ]
}
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2022-07-05 12:29:56

代码语言:javascript
复制
{% unless section.settings.Under_Product_Title == blank %}
  <h1>{{ section.settings.Under_Product_Title }}</h1>
{% endunless %}
 

    {% schema %}
    {
      "name": "Product pages",
      "settings": [
        {
          "type": "text",
          "id": "Under_Product_Title",
          "label": "Under Product Title",
          "default": "30 tablets (30 days)"
        }
      ]
    }
    {% endschema %}
票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/72861034

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档