Shopify themes, liquid, logos, and UX
To continue receiving payouts, you need to secure your account by turning on two-step authentication. If two-step authentication is not turned on your payouts will be paused. Learn more
What coding can I use to make this happen?
I think this may be a new free theme hence why I can't find an answer online as of yet.
I can put in a full width video however that will not auto-play.
Why dont you create a new section for the video banner instead of changing an image banner to video?
There isn't an option for that? If there was I wouldn't be asking the question.
You should have the option to create new sections. To create a new section, go to Edit Code > Sections > Add a new section
@lunaworks I am unsure on the steps after that. How will this add a video banner to my Home Page?
Because your theme doesnt have a video section, you'll have to create one. An image banner is for images only so you can use a video for that.
Below is a code for a video section, follow the steps above to create a new section and copy the code in the section you created. Go to your Customize > Add section, look for "Custom Video" section and add.
<video id="home-video" max-height="100%" width="100%" autoplay="" muted="" loop="" playsinline="">
<source src="{{ section.settings.custom_video }}" type="video/mp4">
Your browser does not support the video tag.
</video>
{% schema %}
{
"name": "Custom Video",
"settings": [
{
"type":"url",
"id":"custom_video",
"label":"Add video url"
}
],
"presets":[
{
"name":"Custom Video"
}
]
}
{% endschema %}
Do I suppose to add the url from files in the code where it states 'label: add video url'? I have done the steps above, created a section (edit code - sections - add section), and pasted this code in but in the created it isn't showing anything apart from the standard custom liquid.
Yes, add the URL to your video there. I’d suggest you upload your video to shopify, go to settings > files and then upload the video. You’ll get an option to copy the video you uploaded url
If I understand you clearly, you’ve created a section and added the code I sent earlier. You added the Custom video section and what happened?
User | RANK |
---|---|
118 | |
89 | |
73 | |
65 | |
46 |
Learn these 5 things I had to learn the hard way with starting and running my own business
By Kitana Jan 27, 2023Would you love to unleash the unbridled power of the Google Shopping Channel into your sho...
By Gabe Jan 6, 2023How can you turn a hobby into a career? That’s what Emmanuel did while working as a wa...
By Skye Dec 30, 2022