Tagged: video embedding, Youtube
Hello,
I have run a website with WooCommerce. I’m trying to embed a YouTube video on the description body of a single product page. But the dimensions are way too big and long (Image provided in Private Content). Is it possible to embed it with an appropriate size and aligned in the middle? I tried both the regular url, the short link, and I’ve also embedded the embed code in the text tab (not the visual tab). All three did not work.
I checked the other thread that discusses the same problem, but the CSS styling code (provided by Victoria to a different participant) did not work for me.
Hey hallyupedia,
You don’t just put a youtube link to a text field. Here is a tutorial for you.
https://code.tutsplus.com/tutorials/how-to-add-videos-in-woocommerce–cms-25025
You need to use the embed code.
Best regards,
Victoria
Hi Victoria,
Thanks for the tutorial link. I got it to work.
But is it possible to center align the video?
Hi,
You want it centered across the entire page or just the tab section?
Best regards,
Jordan Shannon
Centered across the tab.
Hi,
Are you able to add a class name to the video tag so we can target it for text-align:center?
Best regards,
Jordan Shannon
I’m sorry. I don’t understand what that means.
Hi,
Add this to quick css:
#tab-description p:nth-child(3){
text-align:center!important;
}
Best regards,
Jordan Shannon
Hi Jordan,
It worked!
Thank you so much for your help.
Appreciate it!
Hi,
No problem at all. If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon