Skip to content

Instantly share code, notes, and snippets.

@shopifypartners
Created January 4, 2023 14:28
Show Gist options
  • Save shopifypartners/7b84dca6dd259d42986f4970d68600c3 to your computer and use it in GitHub Desktop.
Save shopifypartners/7b84dca6dd259d42986f4970d68600c3 to your computer and use it in GitHub Desktop.
Example of a Shopify theme section displaying a video uploaded via the store admin
<div class="video-section">
<h2>{{ section.settings.heading }}</h2>
{{ section.settings.video | video_tag }}
</div>
{% schema %}
{
"name": "Video",
"settings": [
{
"type": "text",
"id": "heading",
"label": "Video section heading",
"default": "Title"
},
{
"type": "video",
"id": "video",
"label": "A Shopify-hosted video"
}
],
"presets": [
{
"name": "Hosted Video"
}
]
}
{% endschema %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment