Tagged: product description, video, width, woocommerce, Youtube
Hey folks.
When adding a link for the youtube video in a woocommerce product description area, the video is defaulting to 1500px wide – cutting off the left and right sides, like so:
Any suggestions, without having to insert the whole embed code?
Thanks!
M
Hey interage,
Please try adding this code to the Quick CSS section under Enfold > General Styling or to your child themes style.css file:
.wc-tabs .embed-youtube iframe { max-height: 400px !important; }
Best regards,
Yigit
Hey Yigit!
No dice. I added the code in question, but the video is still doing the same thing.
Thanks!
Mark
Hi,
Try adding this code in Quick CSS:
#top .embed-youtube iframe {
height: 360px;
}
If that doesn’t work try using this instead:
#top .embed-youtube iframe {
height: 360px !important;
}
Hope this helps. :)
Best regards,
Nikko