Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #861438

    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.

    #862018

    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

    #862032

    Hi Victoria,
    Thanks for the tutorial link. I got it to work.
    But is it possible to center align the video?

    #862083

    Hi,

    You want it centered across the entire page or just the tab section?

    Best regards,
    Jordan Shannon

    #862097

    Centered across the tab.

    #862165

    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

    #862167

    I’m sorry. I don’t understand what that means.

    #862174

    Hi,

    Add this to quick css:

    #tab-description p:nth-child(3){
    text-align:center!important;
    }

    Best regards,
    Jordan Shannon

    #862182

    Hi Jordan,
    It worked!
    Thank you so much for your help.
    Appreciate it!

    #862188

    Hi,

    No problem at all. If you need additional help, please let us know here in the forums.

    Best regards,
    Jordan Shannon

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Youtube Embedding’ is closed to new replies.