Shopify themes, liquid, logos, and UX
Hi, I would like to hide my main background video on desktop, but then keep it showing on mobile. Could anyone please help me on the code to adjust this? 🙂
store url: shopkihk.com
theme: icon
not using a background video on the public version right now (will go live monday) so here is the preview link https://unudkpdtr3nhsuzr-58925383888.shopifypreview.com
thanks in advance 🙂
Solved! Go to the solution
This is an accepted solution.
Hello @abbyp
Please use below code on assets -> stylesheet.css at the bottom to hide video on desktop only and show on mobile devices
@media only screen and (min-width: 769px) {
.section-background-video {
display: none !important;
}
}
This is an accepted solution.
Hello @abbyp
Please use below code on assets -> stylesheet.css at the bottom to hide video on desktop only and show on mobile devices
@media only screen and (min-width: 769px) {
.section-background-video {
display: none !important;
}
}
hi niraj!!! thank you SO MUCH! this worked perfectly. you're amazing!
one more question for you... if i had two background videos, would there be able to do this to just one of them? say, if i wanted one background video for mobile but a different one for desktop ?
User | RANK |
---|---|
207 | |
178 | |
63 | |
51 | |
47 |
On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023You've downloaded the Search & Discovery app from the Shopify App store, and as you're ...
By Skye Nov 8, 2023The year-end shopping season is just around the corner. Is a flash sale on your radar? Are...
By Jasonh Nov 6, 2023