Shopify themes, liquid, logos, and UX
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
I've currently got a video banner on my hopmepage. It looks great on desktop, however on mobile it only takes up half the screen. How do I make it take up the full screen on mobile? Thanks
Hi @MarissaW
Can you share with me the store link to check further on it? Thank you
This is Richard from PageFly - Shopify Page Builder App
Hi @MarissaW Please add code here to fix it:
Step 1: Online Stores > Themes > Edit code
Step 2: Choose file theme.liquid
Step 3: Add code above the tag </body>
<style>
@media screen and (max-width: 767px){
#Banner-template--23292092023105__image_banner{
height: 90vh !important;
}
#Banner-template--23292092023105__image_banner .banner__media video{
height: 90vh !important;
object-fit: cover !important;
}
}
</style>
Hope my solution will help you resolve the issue.
Best regards,
Richard | PageFly
Please let me know if it works by giving it a Like or marking it as a solution!
➜ Optimize your Shopify store with PageFly Page Builder (Free plan available)
All features are available from Free plan. Live Chat Support is available 24/7.
Hi @MarissaW
I hope you are well. You can follow our instructions below:
Step 1: Shopify admin > Online store > Customize: https://prnt.sc/XQ6IDB99kUCd
Step 2: From the left menu > Theme settings > Open Custom CSS: https://prnt.sc/iDxwa8zBQ4Z-
Step 3: Copy the code below and paste it there
Here is the code for Step 3:
@media screen and (max-width: 768px){
body #Banner-template--23292092023105__image_banner .banner__media video {
height: unset !important;
object-fit: contain !important;
}
.banner__media.media.video-background {
height: 220px !important;
}
body #Banner-template--23292092023105__image_banner {
height: 220px !important;
}
}
Please let me know if it works. Thank you!
Best,
Daisy - Avada Support Team.