Liquid, JavaScript, themes, sales channels
Hi,
I am currently working on a theme where I would like to have the ability to add a video that I can set in the theme settings.
As of now I am using the following:
...
{% schema %}
{
...,
"blocks": [
{
...,
{
"type": "video_url",
"accept": ["vimeo", "youtube"],
"id": "video_url",
"label": "Video URL",
"default": "https://www.youtube.com/watch?v=_9VUPq3SxOc"
},
...
],
...
}
{% endschema %}
Unfortunately, this method only accept vimeo or youtube videos but I also would like to add videos from the shopify cdn.
Is there any way to enhance this to accept any video url ? My code is able to handle any video.
I couldn't find anything else than video_url and I would like to not use the simple "url" setting.
had the same issue, but the simple "url" setting works totally fine for me.
Hello,
I am also interested in this.
Has anyone found any way to include other video sources ?
Shopify now added video picker in the settings.
https://shopify.dev/themes/architecture/settings/input-settings#video
This literally saved my life, thank you
Are you ready to take your business to the next level? Look no further than the latest ...
By SarahF_Shopify Apr 15, 2024We’re keeping the ball rolling to make sure you’re always ahead of the game. So buckle ...
By JasonH Apr 8, 2024Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024