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 and Accept solution! Or Support me: Buy Coffees
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. 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 and Accept solution! Or Support me: Buy Coffees
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. 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>
As 2024 wraps up, the dropshipping landscape is already shifting towards 2025's trends....
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024In today’s interview, we sat down with @BSS-Commerce to discuss practical strategies f...
By JasonH Nov 13, 2024