What's your biggest current challenge? Have your say in Community Polls along the right column.

Re: How To Add Different Videos For Mobile & Dekstop?

Solved

How To Add Different Videos For Mobile & Dekstop?

Emiway
Pathfinder
245 0 46

How To Add Different Videos For Mobile & Dekstop Separate??
in This theme we only have 1 option 
and i want different video for mobile
URL : https://a6b804-0a.myshopify.com/

Screenshot 2024-09-06 011110.png

Accepted Solution (1)
namphan
Shopify Partner
2031 268 296

This is an accepted solution.

Hi @Emiway,

I added option for it:

Screenshot.png

I hope it helps!

Coffee tips fuels my dedication.
Shopify Development Service
PageFly Page Builder Optimize your Shopify store (Free plan available)
Need help with your store? namphan992@gmail.com

View solution in original post

Replies 6 (6)

DanCodes
Shopify Partner
54 9 6

To achieve this, you'll need to modify the code to load different videos based on the device type (mobile or desktop). If you're interested in the details or need assistance with the implementation, feel free to reach out via email.

If you'd like to support my work, you're welcome to treat me to a coffee here: Buy Me a Coffee
If you'd like to hire me, feel free to contact me: E-mail WhatsApp

namphan
Shopify Partner
2031 268 296

Hi @Emiway,

Please create a section for mobile and upload the video, then I will guide you to add CSS code to make it work

 

Coffee tips fuels my dedication.
Shopify Development Service
PageFly Page Builder Optimize your Shopify store (Free plan available)
Need help with your store? namphan992@gmail.com
Emiway
Pathfinder
245 0 46

Hello Sir, I Had Created a Diffrent Section For Mobille And Uploaded On Site...

1st Video Is For Dekstop & 2nd Video Is For Mobile..

namphan
Shopify Partner
2031 268 296

Hi @Emiway,

Please go to Actions > Edit code > Assets > theme.css file and paste this at the bottom of the file:

@media screen and (max-width: 699px) {
#shopify-section-template--15186843566152__video_qnEVCB {
    display: none;
}
}
@media screen and (min-width: 700px) {
#shopify-section-template--15186843566152__video_iU6Net {
    display: none;
}
}
Coffee tips fuels my dedication.
Shopify Development Service
PageFly Page Builder Optimize your Shopify store (Free plan available)
Need help with your store? namphan992@gmail.com
Emiway
Pathfinder
245 0 46

Working But Not Getting Transparent Header In 1 Version
Screenshot 2024-09-08 022153.pngWhichever will Be First is only supporting transparent header

right now first video is of dekstop versions so that transparent header is working fine.. but mobile video is second so not getting transparent header

namphan
Shopify Partner
2031 268 296

This is an accepted solution.

Hi @Emiway,

I added option for it:

Screenshot.png

I hope it helps!

Coffee tips fuels my dedication.
Shopify Development Service
PageFly Page Builder Optimize your Shopify store (Free plan available)
Need help with your store? namphan992@gmail.com