All things Shopify and commerce
Hello Everyone,
I made a product video on my camera and now I want to add this video to my product page. I could not find a way to add the video. There is an option to add youtube video with embed code but how can I add my own video?
Looking forward to this problem
Hi @james0786,
Welcome to the Shopify Community!
I understand that you want to add your own video to your product page. I may be able to help you with this.
Note: Make sure that you use MP4 video format, which is the most widely supported video format currently available.
Note: If your video file is larger than 20MB, you'll have to upload it to YouTube and use the embed code. Otherwise, you'll need to find a hosting provider for your video, instead of using my Step 1 suggestion of Shopify Files.
Step 1: Upload your video on the Files page:
Step 2: Add HTML content to your product with the rich text editor:
<video controls="controls" style="max-width: 100%; height: auto;"> <source src="your_url_goes_here" type="video/mp4" /> Your browser does not support our video. </video>Be sure to replace "your_url_goes_here" in the code with the URL from Step 1.
Let me know if this solves your problem or if you need further help!
Brian | Shopify Partner | Ecommerce Consultant
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Click Accept as Solution
- Need further assistance? Visit www.BrianAtWork.com
Hi @Expartdesigns,
Yes, the code will work for the homepage. However, I'm sure you'll need to make some code changes to adjust the styling, depending on how you want the video to be displayed.
Brian | Shopify Partner | Ecommerce Consultant
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Click Accept as Solution
- Need further assistance? Visit www.BrianAtWork.com
Hi Brian,
Thank you so much for your reply. I really appreciate that. The good news is! The solution is worked. I tried your method and was able to put my video on the product page.
Thank you so much, Brian, for helping me out.
Hi Brian, I used this code you provided to add videos in my description box and they were working perfectly fine until I discovered 'easy video shopify app'. I gave the app guys access to my site and they configured something. I didnt like how their videos showed up so I went ahead and added my videos like I did before with your code but they stopped working. Will you help on how i can get them back up?
Hi @boldcollab,
Welcome to the Shopify Community!
I understand that after you installed a new app and gave the app's developers access to your site, you are no longer able to use my suggestion for adding a video to your store.
I would be happy to take a look at your store and see if I can find the problem.
Will you send me an email or private message with a link to your store?
Cheers!
Brian | Shopify Partner | Ecommerce Consultant
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Click Accept as Solution
- Need further assistance? Visit www.BrianAtWork.com
Hey so I used the link for my home page and it worked great, I am just wondering if there is a way to have the video play automatically rather then the customer having to click play.
Thanks so much!
@BrianAtWork wrote:Hi @james0786,
Welcome to the Shopify Community!
I understand that you want to add your own video to your product page. I may be able to help you with this.
Note: Make sure that you use MP4 video format, which is the most widely supported video format currently available.
Note: If your video file is larger than 20MB, you'll have to upload it to YouTube and use the embed code. Otherwise, you'll need to find a hosting provider for your video, instead of using my Step 1 suggestion of Shopify Files.
Step 1: Upload your video on the Files page:
- From your Shopify admin, go to Settings > Files.
- Click Upload files.
- Select the video to upload. Click Open.
- Copy the URL of the video and store it somewhere (we'll need it again soon):
Step 2: Add HTML content to your product with the rich text editor:
- Click the Show HTML button to view the HTML code for the product description inside the rich text editor:
- Get your video URL from Step 1. Add this code to the HTML:
<video controls="controls" style="max-width: 100%; height: auto;"> <source src="your_url_goes_here" type="video/mp4" /> Your browser does not support our video. </video>Be sure to replace "your_url_goes_here" in the code with the URL from Step 1.- Click Save.
Let me know if this solves your problem or if you need further help!
@BrianAtWork wrote:Hi @james0786,
Welcome to the Shopify Community!
I understand that you want to add your own video to your product page. I may be able to help you with this.
Note: Make sure that you use MP4 video format, which is the most widely supported video format currently available.
Note: If your video file is larger than 20MB, you'll have to upload it to YouTube and use the embed code. Otherwise, you'll need to find a hosting provider for your video, instead of using my Step 1 suggestion of Shopify Files.
Step 1: Upload your video on the Files page:
- From your Shopify admin, go to Settings > Files.
- Click Upload files.
- Select the video to upload. Click Open.
- Copy the URL of the video and store it somewhere (we'll need it again soon):
Step 2: Add HTML content to your product with the rich text editor:
- Click the Show HTML button to view the HTML code for the product description inside the rich text editor:
- Get your video URL from Step 1. Add this code to the HTML:
<video controls="controls" style="max-width: 100%; height: auto;"> <source src="your_url_goes_here" type="video/mp4" /> Your browser does not support our video. </video>Be sure to replace "your_url_goes_here" in the code with the URL from Step 1.- Click Save.
Let me know if this solves your problem or if you need further help!
I have just randomly stumbled upon this but thought I would share a way to autoplay this.
HTML5 Video allows for you to add an attribute of 'autoplay' and it will do exactly that.
Just shout if you have any problems.
Thanks,
George
I did it just like that. But if I save it, my video won't show up. It's just white and there's nothing you can do.
@hunterandhare wrote:Hey so I used the link for my home page and it worked great, I am just wondering if there is a way to have the video play automatically rather then the customer having to click play.
Thanks so much!
@BrianAtWork wrote:Hi @james0786,
Welcome to the Shopify Community!
I understand that you want to add your own video to your product page. I may be able to help you with this.
Note: Make sure that you use MP4 video format, which is the most widely supported video format currently available.
Note: If your video file is larger than 20MB, you'll have to upload it to YouTube and use the embed code. Otherwise, you'll need to find a hosting provider for your video, instead of using my Step 1 suggestion of Shopify Files.
Step 1: Upload your video on the Files page:
- From your Shopify admin, go to Settings > Files.
- Click Upload files.
- Select the video to upload. Click Open.
- Copy the URL of the video and store it somewhere (we'll need it again soon):
Step 2: Add HTML content to your product with the rich text editor:
- Click the Show HTML button to view the HTML code for the product description inside the rich text editor:
- Get your video URL from Step 1. Add this code to the HTML:
<video controls="controls" style="max-width: 100%; height: auto;"> <source src="your_url_goes_here" type="video/mp4" /> Your browser does not support our video. </video>Be sure to replace "your_url_goes_here" in the code with the URL from Step 1.- Click Save.
Let me know if this solves your problem or if you need further help!
@BrianAtWork wrote:Hi @james0786,
Welcome to the Shopify Community!
I understand that you want to add your own video to your product page. I may be able to help you with this.
Note: Make sure that you use MP4 video format, which is the most widely supported video format currently available.
Note: If your video file is larger than 20MB, you'll have to upload it to YouTube and use the embed code. Otherwise, you'll need to find a hosting provider for your video, instead of using my Step 1 suggestion of Shopify Files.
Step 1: Upload your video on the Files page:
- From your Shopify admin, go to Settings > Files.
- Click Upload files.
- Select the video to upload. Click Open.
- Copy the URL of the video and store it somewhere (we'll need it again soon):
Step 2: Add HTML content to your product with the rich text editor:
- Click the Show HTML button to view the HTML code for the product description inside the rich text editor:
- Get your video URL from Step 1. Add this code to the HTML:
<video controls="controls" style="max-width: 100%; height: auto;"> <source src="your_url_goes_here" type="video/mp4" /> Your browser does not support our video. </video>Be sure to replace "your_url_goes_here" in the code with the URL from Step 1.- Click Save.
Let me know if this solves your problem or if you need further help!
This was SUPER helpful thanks!! You mentioned that each vid has a 20MB limit, but does shopify have an overall storage limit for all the files?
even if I check "autoplay", it's not playing, you have to go and enable show controls and then hit the play button
Hi,
If you are viewing this on a mobile/tablet device that has 'low power mode' and this is enabled it will not autoplay as this feature is trying to save power usage and autoplaying a video will use a significant amount of power. Thus defeating the purpose of 'low power mode'
Thanks,
George
I'm viewing it on iMac, Chrome browser
It worked .. Thank you very much
Hi Brian,
Thanks for this thorough answer!
I am currently looking to create a site which would host video content on a hosting provider in China. The main reason to do this is to gain access to Chinese CDNs so users in China will have a smooth viewing experience.
Do you know of any restrictions or issues on Shopify's side when it comes to using Chinese video hosting services (for example https://www.polyv.net/vod/en/ or Tencent cloud)?
Thank you!
Hi Brian, may I know if I can upload MOV file as I usually take a video with iOS. I tried to change the code for type mov but failed...
hello i added all the code but the video does not auto play or loop how do i get my video to do that?
please help thank you
how do i get the video to auto play and loop on my product page?
Hi @BrianAtWork ,
I would like to know if there is any solution to have something to quick select the video from the Customize area:
"blocks": [ { "settings": [ { "type": "video_picker" } ] } ]
Right now I am inserting the video URL as a "type": "text", but it would be really great if we didn't need to go to Settings > Files, find the file and copy the URL every time that we want to make a change. It is not a big issue, I just would like to know if there is a better approach.
Thank you,
Italo.
User | RANK |
---|---|
24 | |
18 | |
16 | |
14 | |
14 |
Thanks to all Community members that participated in our inaugural 2 week AMA on the new E...
By Jacqui Mar 10, 2023Upskill and stand out with the new Shopify Foundations Certification program
By SarahF_Shopify Mar 6, 2023One of the key components to running a successful online business is having clear and co...
By Ollie Mar 6, 2023