2016-10-05 52 views
1

隨着我被分配到建設使用Shopify的新主題建設者框架的新客戶的網站新的主題編輯器的發佈。訂製的部分沒有出現在用Shopify新的主題編輯器

一切都已經去除了罰款,當我去創造它未能主題編輯器的「節」區域內出現的後端了新的「節」。

任何想法是怎麼回事錯在這裏?是否有另一個JSON文件與我缺少的部分相關聯?

<div id="callToActions"> 
    <div class="grid grid--no-gutters"> 
    <div class=""></div> 
    </div> 
</div> 



{% schema %} 
{ 
    "name": "Call to Actions", 
    "class": "index-section index-section--flush", 
    "settings": [ 
    { 
     "id": "cta_1_title", 
     "type": "text", 
     "label": "CTA 1 Title", 
     "default": "Dryups Specials" 
    } 
    ] 
} 
{% endschema %} 
+0

科將不會在主題編輯器顯示,直到你將其包含在你的主題/流式文件。 –

回答

4

你幾乎在那裏,只是缺少一件事。只有在定義了預設時,節纔會顯示爲要添加的選項。

此更新將使其顯示:

{% schema %} 
{ 
    "name": "Call to Actions", 
    "class": "index-section index-section--flush", 
    "settings": [ 
    { 
     "id": "cta_1_title", 
     "type": "text", 
     "label": "CTA 1 Title", 
     "default": "Dryups Specials" 
    } 
    ], 
    "presets": [{ 
    "name": "Call to Actions", 
    "category": "Text" 
    }] 
} 
{% endschema %} 

注意的範疇。如果省略,它將在Miscellaneous下結束。

相關問題