Hello, I have a banner video on my homepage. Unfortunately the formatting for the desktop version looks very bad. That’s why I want to set two different videos for the mobile and the desktop view. How does it work?
my shop: www.bitterkalt.com
A user wants to display different banner videos for mobile versus desktop versions of their Shopify homepage because the desktop formatting looks poor with a single video.
Solution Provided:
</head> tag to hide/show banners based on device typeSteps to implement:
Current Status:
The original poster successfully implemented the solution. However, another user (using the Publisher theme) reports the code isn’t working—both videos display on all devices. This suggests the solution may be theme-dependent and requires further troubleshooting for different Shopify themes.
Hello, I have a banner video on my homepage. Unfortunately the formatting for the desktop version looks very bad. That’s why I want to set two different videos for the mobile and the desktop view. How does it work?
my shop: www.bitterkalt.com
@bobatz , You could add two different banners next to each other. I will send you the code to hide one on desktop and show the other, and vice versa.
that would be fantastic! I am new to shopify. would be great if you can explain in detail what i need to do! ![]()
Hi @bobatz
Would you mind sharing with me which theme that you are using now?
I will assist you with your question.
Avada team
hey, I am using the Theme called Venue. I made two videos now: the first one is for the desktop version and the second one for the mobile version. Thanks in advcance!
@bobatz , follow these steps
Step 1: Go to Shopify Admin → Online Store ->Theme → Edit code
Step 2: Search file theme.liquid
Step 3: Insert this code above
wow, thank you so much!!! perfect!
Hey! I added the code but it doesn’t seem to work for me. It keeps showing both video’s on desktop and mobile. Could you please help me? I’m using thema Publisher for reference.