All things Shopify and commerce
I Want to change embed youtube video width and height on my product page but it is only changing on my shopify product page section, but didnt show these changes on my website product page.
How can i change the size of embed video on the product page.
I am currently using prestige version 5.
This is the width and height that i am trying with the embed code:
<iframe width="300" height="560" src="https://www.youtube.com/embed/5C1cIy1YLlY?si=t9ineCSGz0jPsPlm" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
Pictures attached:
Solved! Go to the solution
This is an accepted solution.
Hi, please try to update the previous code to this
.ProductMeta__Description .VideoWrapper {
overflow: unset;
height: 560px
}
.ProductMeta__Description .VideoWrapper iframe {
width: 300px;
height: 560px;
left: 50%;
transform: translate(-50%, 0px);
}
- 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.
Could you share your product page link so I can check?
- 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.
CSS of your theme removes width height settings in your code
Also, if it applies your settings, your video will look like this
- 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.
Yes i want video like this, so what should i have to do?
Please add this code to Custom CSS in Online Store > Themes > Customize > Theme settings
.ProductMeta__Description .VideoWrapper {
overflow: unset;
height: 560px
}
.ProductMeta__Description .VideoWrapper iframe {
width: 300px;
height: 560px;
}
- 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.
Alright let me do that.. and autoplay is also not working when i am adding autoplay code in html...can you also tell that how to do this.. so that i will apply combine code in custom CSS for both of my problem
I have applied your code and it works but the video is on left side.. and doesnt come in center like other images...even after aligning it in center in product description.. tell me what can i do.
Kindly replyyyyyy plzzzz
Here is the product page link:
https://thehairshop.pk/products/hair-keratin-treatment-ultra-strength-1
This is an accepted solution.
Hi, please try to update the previous code to this
.ProductMeta__Description .VideoWrapper {
overflow: unset;
height: 560px
}
.ProductMeta__Description .VideoWrapper iframe {
width: 300px;
height: 560px;
left: 50%;
transform: translate(-50%, 0px);
}
- 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.
Thankyouu..........autoplay is also not working when i am adding autoplay code in html...can you also tell that how to do this.. so that i will apply combine code in custom CSS for both of my problem .....can you also help with this?
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