Issue with Mobile banner size

Solved
HOUSEOFGOD
Visitor
2 0 0

Hello so I used this code to make a video banner and looks great on Destop but the resizing on mobile isn't that great https://www.youtube.com/watch?v=-Zy-gHGQDtU&t=354s the them I'm using is Origin. The website is https://houseofgod.clothing/

Accepted Solution (1)
Moeed
Shopify Partner
3046 760 924

This is an accepted solution.

Hey @HOUSEOFGOD 

 

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file

4) Add the following code in the bottom of the file above </body> tag

<style>
@media screen and (max-width: 767px) {
.videoBackground .fullscreen-video-wrap .video-js {
    object-fit: fill !important;
}
}
</style>

RESULT:

Moeed_0-1700120686309.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

Need a Shopify developer? Chat on WhatsApp


- For Shopify Design Changes | Shopify Custom Coding | Custom Modifications
- Your Coffee Tip and my code, A perfect blend. ❤️

View solution in original post

Replies 4 (4)
Moeed
Shopify Partner
3046 760 924

This is an accepted solution.

Hey @HOUSEOFGOD 

 

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file

4) Add the following code in the bottom of the file above </body> tag

<style>
@media screen and (max-width: 767px) {
.videoBackground .fullscreen-video-wrap .video-js {
    object-fit: fill !important;
}
}
</style>

RESULT:

Moeed_0-1700120686309.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

Need a Shopify developer? Chat on WhatsApp


- For Shopify Design Changes | Shopify Custom Coding | Custom Modifications
- Your Coffee Tip and my code, A perfect blend. ❤️
HOUSEOFGOD
Visitor
2 0 0

Your are a life saver!!!!👍

websensepro
Shopify Partner
777 105 105

hi, @HOUSEOFGOD 

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find base.css file

 

@media screen and (max-width: 767px) {
.videoBackground .fullscreen-video-wrap .video-js{
    object-fit: inherit !important;
}
}
Need a Shopify developer?
Hire us at WebSensePro
For Shopify Design Changes | Shopify Custom Coding | Custom Modifications
Subscribe to our youtube channel or buy us a Cofee here
PageFly-Oliver
Navigator
479 92 89

Hi @HOUSEOFGOD ,

 

You can try this code by following these steps:

Step 1: Go to Online Store->Theme->Edit code.

Step 2: Search file theme.liquid

Step 3: Paste the below code at the bottom of the file -> Save

 

<style>
@media(max-width:767px){
#shopify-section-template--17128544141561__6355322d-a1cf-4b73-bc43-428390fcbdf4 .videoBox{
min-height:unset !important;
height:100vw !important
}
}
</style>

 

 

Hope my solution works perfectly for you!

Best regards,

Oliver | PageFly

Please let me know if it works by giving it a Like or marking it as a solution!


PageFly - #1 Page Builder for Shopify merchants.


All features are available from Free plan. Live Chat Support is available 24/7.