New Shopify Certification now available: Liquid Storefronts for Theme Developers

Black Bars on Top and Bottom of Mobile Video

WK100
Explorer
51 1 9

Website: Saintclairescookiedough.com

 

Hey there! I have a video on my Shopify store that plays perfectly on desktop but on mobile there are black bars on the top and bottom. See below:

Desktop:

WK100_1-1699987143307.png

 

Mobile:

WK100_0-1699987121747.png

 

How can I remove these black bars when viewed from mobile? 

Replies 3 (3)
Made4uo-Ribe
Shopify Partner
4222 977 1189

Hi @WK100 

Check this one. 

  • From your Shopify admin dashboard, click on "Online Store" and then "Themes".
  • Find the theme that you want to edit and click on "Actions" and then "Edit code".
  • In the "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

 

@media only screen and (max-width: 769px){ 
.video-section__media video {
    background: transparent !important;
}
}

 

  • And Save. 
  • Result:
  • Made4uoRibe_0-1699987900027.png

     

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
Need a knowledgeable developer? Come and visit us at

Made4uo.com


WK100
Explorer
51 1 9

@Made4uo-Ribe Thank you!! This is a good start but is there a way to make it take up the whole section? See below:

WK100_0-1699988077395.png

 

Made4uo-Ribe
Shopify Partner
4222 977 1189

Check this one. 

Same instruction.

 

.video-section__poster, .video-section__media iframe, .video-section__media video {
    height: unset !important;
}

 

And Save. 

 

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
Need a knowledgeable developer? Come and visit us at

Made4uo.com