Shopify themes, liquid, logos, and UX
Hello, I’m trying to adjust the size of my homepage video on my website that automatically plays. While it looks fine on desktop, it appears too small on mobile. Is there a way to change the size specifically for the mobile version? Additionally, I’d like to apply similar adjustments to other elements on the site like the love hearts half way down the home page with text under it the hearts are way too big on desktop but look fine on mobile. I am having to make things really big just so it can be of a decent size on mobile.
Hello @Hello29 Copy and paste this code to resize your video for mobile view then let me know if it works for you
<style>
@media (min-width: 620px) and (max-width: 767px) {
#shopify-section-template--16340303020204__background_video_Kn3CHe {
height: 40%;
}
video.video-js {
position: relative !important;
height: 320px !important;
}
#shopify-section-template--16340303020204__background_video_LHNBRA {
max-height: 325px !important;
}
}
@media (max-width: 619px) {
#shopify-section-template--16340303020204__background_video_Kn3CHe {
height: 30%;
}
video.video-js {
position: relative !important;
height: 200px !important;
}
#shopify-section-template--16340303020204__background_video_LHNBRA {
max-height: 205px !important;
}
}
</style>
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024