2016-10-05 2 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 아래에 표시됩니다.