I am using dawn theme and this theme only allow upload youtube and vimeo video. but I wanna upload embed video hosted at shopify.
could you please help me?
I am using dawn theme and this theme only allow upload youtube and vimeo video. but I wanna upload embed video hosted at shopify.
could you please help me?
Hi,
This is possible. Use this code below. To add the video in your shopify store, you have to click Settings at the lower left corner at your Shopify Admin view. Then click “Files”, you can upload your video there. After uploading, if you do not see your video in the list, change the “File type” to other. Click the chain link icon on the right to get the link of the video and paste the link when editing the theme(at the Theme editor window). Let me know if works.
Go to you admin store.
Chose the theme you want to edit.
Click “Actions”, then edit code
Under the “Section Folder”, add a new section.
Replace the existing code with the code below.
{{ ‘video-section.css’ | asset_url | stylesheet_tag }}
{{ ‘component-deferred-media.css’ | asset_url | stylesheet_tag }}
{% schema %}
{
“name”: “t:sections.video.name”,
“tag”: “section”,
“class”: “spaced-section spaced-section–full-width”,
“settings”: [
{
“type”: “text”,
“id”: “heading”,
“default”: “Video”,
“label”: “t:sections.video.settings.heading.label”
},
{
“type”: “image_picker”,
“id”: “cover_image”,
“label”: “t:sections.video.settings.cover_image.label”
},
{
“type”: “text”,
“id”: “shopify_video”,
“label”: “Add the video link here”
},
{
“type”: “video_url”,
“id”: “video_url”,
“accept”: [
“youtube”,
“vimeo”
],
“default”: “https://[www.youtube.com](http://www.youtube.com)/watch?v=_9VUPq3SxOc”,
“label”: “t:sections.video.settings.video_url.label”,
“placeholder”: “t:sections.video.settings.video_url.placeholder”,
“info”: “t:sections.video.settings.video_url.info”
},
{
“type”: “text”,
“id”: “description”,
“label”: “t:sections.video.settings.description.label”,
“info”: “t:sections.video.settings.description.info”
},
{
“type”: “checkbox”,
“id”: “full_width”,
“label”: “t:sections.video.settings.full_width.label”,
“default”: false
}
],
“presets”: [
{
“name”: “t:sections.video.presets.name”
}
]
}
{% endschema %}
This does not work at all - still asks for a YouTube or Vimeo link for the video.
You should look on the link section on the link section of your block. And provide the link there
I just did that yesterday. Where it asks for URL use the vimeo url / your number of the video. It worked for me.
I see in the code it says autoplay, but my video is not autoplaying. Is there a way to get it to autoplay? Thanks