Solved

How can I fix the white margin around a video on my website?

Klaw2OC
Tourist
24 0 2

I have this video on my website (https://b7ff16-2.myshopify.com/) with the custom liquid below:

<video poster="" loop="" muted="" playsinline="" nocontrols="" autoplay="" src="https://cdn.shopify.com/videos/c/o/v/03b1a57eb2d4468db58c243f5c5683d1.mp4" width="100%"></video>

 

It looks good on the desktop but doesn't fit well on the mobile. Can anyone help?
I will appreciate any help you can provide.

Klaw2OC_0-1706668992156.png

 

Accepted Solutions (2)

PageFly-Richard
Shopify Partner
4226 955 1603

This is an accepted solution.

Hi @Klaw2OC 

 

This is Richard from PageFly - Shopify Page Builder App

 

Please add this code to your theme.liquid above the </head> to get this solved

Step 1: Online Stores > Themes > More Actions > Edit code

Step 2: click on theme.liquid and paste the code above the </head>

<style>
div#shopify-section-template--20792368463895__custom_liquid_f4c4CA .custom-liquid--root {
    padding: 0 !important;
}
</style>

PageFlyRichard_0-1706669729154.png

Hope this can help you solve the issue 

 

 

Best regards,

Richard | 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.

View solution in original post

Dan-From-Ryviu
Shopify Partner
7532 1454 1450

This is an accepted solution.

Add this code to your theme.liquid file, after <head> 

<style>
@media (max-width: 749px) {
#shopify-section-template--20792368463895__custom_liquid_f4c4CA .custom-liquid--root {
padding-left: 0px;
padding-right: 0px;
}
}
</style>

- Helpful? Like or Accept solution! - Buy me a coffee
- Ryviu - Product Reviews app, collect product reviews, import reviews from AliExpress, Amazon, Etsy, Shopee and Walmart and CSV.
- Lookfy app: Easy and fast to create Photo Gallery, Lookbook, Shop The Look
- Enjoy 1 month of Shopify for $1. Sign up now

View solution in original post

Replies 4 (4)

PageFly-Richard
Shopify Partner
4226 955 1603

This is an accepted solution.

Hi @Klaw2OC 

 

This is Richard from PageFly - Shopify Page Builder App

 

Please add this code to your theme.liquid above the </head> to get this solved

Step 1: Online Stores > Themes > More Actions > Edit code

Step 2: click on theme.liquid and paste the code above the </head>

<style>
div#shopify-section-template--20792368463895__custom_liquid_f4c4CA .custom-liquid--root {
    padding: 0 !important;
}
</style>

PageFlyRichard_0-1706669729154.png

Hope this can help you solve the issue 

 

 

Best regards,

Richard | 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.

Klaw2OC
Tourist
24 0 2

It works. Thank you so much!

Dan-From-Ryviu
Shopify Partner
7532 1454 1450

This is an accepted solution.

Add this code to your theme.liquid file, after <head> 

<style>
@media (max-width: 749px) {
#shopify-section-template--20792368463895__custom_liquid_f4c4CA .custom-liquid--root {
padding-left: 0px;
padding-right: 0px;
}
}
</style>

- Helpful? Like or Accept solution! - Buy me a coffee
- Ryviu - Product Reviews app, collect product reviews, import reviews from AliExpress, Amazon, Etsy, Shopee and Walmart and CSV.
- Lookfy app: Easy and fast to create Photo Gallery, Lookbook, Shop The Look
- Enjoy 1 month of Shopify for $1. Sign up now

Klaw2OC
Tourist
24 0 2

Thank you😁