Last active
August 30, 2021 08:44
-
-
Save liamgriffin/2423053440c859be0e7942898c1f4881 to your computer and use it in GitHub Desktop.
How to Create Your First Shopify Theme Section | Custom Text Section
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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