How can I optimize YouTube video embeds on my product page?

How can I optimize YouTube video embeds on my product page?

AquaLabs
Excursionist
30 0 5

Hi,

I have embeded some youtube videos on a couple of my product pages but i dont like how they are being cramped into a portrait view. Is it possible to have them show the full youtube thumbnail in landscape so it doesnt look cramped?

Here are the two pages for reference:

https://www.aqualabs.com.au/products/aqualabs-mini-dual-stage-regulator
https://www.aqualabs.com.au/p...


I am using dawn theme. Thanks!

Replies 2 (2)

ssdc
Shopify Expert
30 1 4

heya, try edit the code and change the height to 100%. so it would be like

 

<iframe width="345" height="100%" src="https://www.youtube.com/embed/guC1MK_16Vo" title="AquaLabs Mini Dual Stage CO2 Regulator Setup Guide" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>

 

Shopify Expert based in Indonesia. Visit our website ssdc.co
AquaLabs
Excursionist
30 0 5

Hi, that didnt really work but I played around and width = 368 and height =207 seems to work well enough.

Thanks!