小编Nid*_*dhi的帖子

在shopify主题的“ settings_schema.json”中添加“块”

我是Shopify的新手,正在Shopify中构建自定义主题,我想在设置部分模式中添加“ blocks”到settings_schema.json中,这可能吗?如果是,那我该如何添加呢?请帮我,
我添加了以下代码:

    [
  {
    "name": "theme_info",
    "theme_name": "Slate",
    "theme_version": "0.11.0",
    "theme_author": "Shopify",
    "theme_documentation_url": "https:\/\/shopify.github.io\/slate\/",
    "theme_support_url": "https:\/\/github.com\/Shopify\/slate"
  },
  {
    "name": "Colors",
    "settings": [
      {
        "type": "header",
        "content": "General colors"
      },
      {
        "type": "color",
        "id": "color_theme",
        "label": "Theme color",
        "default": "#efeeeb",
        "info": "Used for theme"
      },
      {
        "type": "color",
        "id": "color_primary",
        "label": "Primary color",
        "default": "#4d4d4d",
        "info": "Used for text links, and primary buttons"
      }
    ],
    "blocks": [
      {
        "type": "product_colors",
        "name": "Product colors",
        "settings": [
          {
            "type": "color",
            "id": "color_label", …
Run Code Online (Sandbox Code Playgroud)

themes shopify

1
推荐指数
1
解决办法
1463
查看次数

标签 统计

shopify ×1

themes ×1