Black Bars on Top and Bottom of Mobile Video

Black Bars on Top and Bottom of Mobile Video

WK100
Explorer
56 1 10

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
10102 2398 3032

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!

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
WK100
Explorer
56 1 10

@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
10102 2398 3032

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!

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.