Skip to content

Instantly share code, notes, and snippets.

@liamgriffin
Last active August 30, 2021 08:44
Show Gist options
  • Save liamgriffin/2423053440c859be0e7942898c1f4881 to your computer and use it in GitHub Desktop.
Save liamgriffin/2423053440c859be0e7942898c1f4881 to your computer and use it in GitHub Desktop.
How to Create Your First Shopify Theme Section | Custom Text Section
<div class="custom-text-section">
<h2> {{ section.settings.custom_text_title }} </h2>
<div>{{ section.settings.custom_text_body }}</div>
</div>
{% schema %}
{
"name": "Text Box",
"settings": [
{
"id": "custom_text_title",
"type": "text",
"label": "Text box heading",
"default": "Title"
},
{
"id": "custom_text_body",
"type": "richtext",
"label": "Add custom text below",
"default": "<p>Add your text here</p>"
}
]
}
{% endschema %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment