All things Shopify and commerce
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.
Solved! Go to the solution
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>
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!
➜ 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.
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 & Accept solution!
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...Sign up now.
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>
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!
➜ 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.
It works. Thank you so much!
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 & Accept solution!
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...Sign up now.
Thank you😁
To make the video fit better on mobile devices, you can use CSS to control its size and aspect ratio. You can try adding a CSS media query to adjust the video size specifically for mobile screens. Here's how you can do it:
<style>
/* CSS for desktop */
@media (min-width: 768px) {
/* Adjust the video width and height for desktop */
video {
width: 100%;
height: auto;
}
}
/* CSS for mobile */
@media (max-width: 767px) {
/* Adjust the video width and height for mobile */
video {
width: 100%;
height: auto;
}
}
</style>
<video poster="" loop="" muted="" playsinline="" nocontrols="" autoplay=""src="https://cdn.shopify.com/videos/c/o/v/03b1a57eb2d4468db58c243f5c5683d1.mp4" width="100%"></video>
Discover how to increase customer engagement on your store with articles from Shopify A...
By Jacqui Apr 23, 2025Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025