Shopify themes, liquid, logos, and UX
Hi community, the product images on the product page are just fine, but the videos look huge on desktop. Can anyone help reducing their size for desktop ?
https://www.elegancebyselin.com/products/alice-earrings
Password: daumas
Solved! Go to the solution
This is an accepted solution.
Hi @Daniel19901,
Thank you for your question. After taking a look at your store, you can try to add the following code to your Custom CSS inside your Theme Editor to reduce the video size on desktop view:
.plyr video, .plyr audio, .product__grid--slides .flickity-viewport {
height: 500px !important;
}
And you should get the result as the image below:
If the method above didn't work, you can add the code directly to the Theme CSS, you also change the px number to adjust the size of video as you prefer.
I hope my answer is helpful!
Best,
Liz.
This is an accepted solution.
Hi @Daniel19901,
Thank you for your question. After taking a look at your store, you can try to add the following code to your Custom CSS inside your Theme Editor to reduce the video size on desktop view:
.plyr video, .plyr audio, .product__grid--slides .flickity-viewport {
height: 500px !important;
}
And you should get the result as the image below:
If the method above didn't work, you can add the code directly to the Theme CSS, you also change the px number to adjust the size of video as you prefer.
I hope my answer is helpful!
Best,
Liz.
Hi again @Daniel19901,
After checking one more time, I highly recommend you replace the previous code I shared above with this new code:
@media only screen and (min-width: 768px) {
.plyr video, .plyr audio, .product__grid--slides .flickity-viewport {
height: 500px !important;
}
}
This new set of code still works fine for desktops but it will also ensure the video on the mobile view won't be accidentally extended.
Best,
Liz.
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024