• Resolved nick8182

    (@nick8182)


    hello, has everything I noticed a very strange thing, with wc 3.4.3 and wp 4.9.6, if I insert a video of youtube inside the example product page;

    <iframe width = “560” height = “315” src = “https://www.youtube.com/embed/QaAQlyO2xRI?rel=0&showinfo=0&#8221; frameborder = “0” allow = “autoplay; encrypted-media “allowfullscreen> </ iframe>

    The video can be seen and everything is ok, but if you order the product, the video code disappears from the product page, while the previous version did not happen.

    Thanks to those who can help me.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter nick8182

    (@nick8182)

    orders placed as a guest, using chrome

    Howdy ??

    What you describe does not seem to be reproducible. I added that embed code to a product description then, as a guest, purchased the product and completed the checkout process and this did not have any effect at all on the product description and the code remained.

    The more likely explanation for this behavior is that somebody who is not an administrator user (i.e. a user with the role of ‘Shop Manager’) has updated the product and the iframe has been stripped out due to a permissions check when the content is saved. Only administrators can add iframes.

    There really is no need to wrap that in an iframe though since WordPress will parse youtube urls and automatically embed the video so all you really need to do is past the url to the youtube video and not bother with the iframe.

    Kind regards,

    Kenin

    (@kbassart)

    Automattic Happiness Engineer

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘strange problem with YouTube video product page’ is closed to new replies.