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

Make Homepage Video Banner Take Up Full Mobile Screen

Make Homepage Video Banner Take Up Full Mobile Screen

MarissaW
Visitor
3 0 1

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

Replies 4 (4)

LizHoang
Shopify Partner
1251 159 195

Hi @MarissaW 

 

Can you share with me the store link to check further on it? Thank you

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Check our Joy Rewards & Loyalty Program
MarissaW
Visitor
3 0 1

PageFly-Richard
Shopify Partner
5011 1120 1806

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.

DaisyVo
Shopify Partner
4469 501 599

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;
}
}

 

image (5).png

 


Please let me know if it works. Thank you!

 

Best,
Daisy - Avada Support Team.

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Avada SEO & Image Optimizer - The #1 SEO solution