What's your biggest current challenge? Have your say in Community Polls along the right column.

Change product page video size on desktop

Solved

Change product page video size on desktop

Daniel19901
Shopify Partner
268 1 74

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

 

Daniel19901_0-1732534502357.png

 

 

Accepted Solution (1)

LizHoang
Shopify Partner
285 35 61

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:

LizHoang_0-1732549979351.png

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.

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Check our Joy Rewards & Loyalty Program

View solution in original post

Replies 2 (2)

LizHoang
Shopify Partner
285 35 61

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:

LizHoang_0-1732549979351.png

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.

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Check our Joy Rewards & Loyalty Program
LizHoang
Shopify Partner
285 35 61

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.

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Check our Joy Rewards & Loyalty Program