Shopify themes, liquid, logos, and UX
Hi Guys
I need help regarding the use of videos in the product overview. While the play button is in the middle of the video on the computer, it is in the top left corner on the mobile view. How can I change this, or is there also a possibility for mobile to play the video with only one click? (Currently you need 3 clicks, click on video > click on play button > click again on play button / tested with Iphone 11).
Thank you for your help.
Here is my URL: https://vitavera.shop/products/vv-eloah-hoodie
Solved! Go to the solution
This is an accepted solution.
Oh sorry for this please delete the code that you added and paste this new code
@media(max-width:786px){
.product__media-icon {
top: 40% !important;
left: 40% !important;
height: 10rem !important;
width: 10rem !important;
}
.product__media-icon .icon {
width: 5rem !important;
height: 5rem !important;
}
}
Hi,
Can you try this code
1. Go to Online Store-> Theme->Edit code
2. Asset->/base.css ->paste the below code at the bottom of the file.
@media(max-width:786px){
.product__media-icon {
top: 40%;
left: 40%;
height: 10rem;
width: 10rem;
}
.product__media-icon .icon {
width: 5rem;
height: 5rem;
}
}
You can change these values according to your choice.
The top and left values make it in the center. you can change them to replace the button where you want.
The first width and height are for the play button white background and the second one is for the triangle play icon
Hi Ahsan
Thank you for the reply. Where do i have to paste the code in?
You can paste it at the end. Like in the screenshot from line number 2865 onwards.
I did it like that but it is not affecting the play button:
This is an accepted solution.
Oh sorry for this please delete the code that you added and paste this new code
@media(max-width:786px){
.product__media-icon {
top: 40% !important;
left: 40% !important;
height: 10rem !important;
width: 10rem !important;
}
.product__media-icon .icon {
width: 5rem !important;
height: 5rem !important;
}
}
It worked! thank you!!
Is there a way to play the video with the first click, otherwise you have to click three times to watch the video (kind of a bad experience).
On my side, it is playing after two clicks. and there is no option to reduce the click count. If I found any solution I will update it here.
Thanks
Ahsan ANC
perfect, thank you!
Hi, i have the same question, but I need the button in a video from the home page.
Thanks!!
@Dphasma Please share the store URL
you want button for this video?
Yes!! this video
How did you add that video? share that custom code.
Hi Ahsan, I also need a button adding to my video in the hope it plays sound after clicking it. Can you help add it to the code?
Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024In today’s interview, we sat down with @BSS-Commerce to discuss practical strategies f...
By JasonH Nov 13, 2024