Are YouTube Clips Supported in Product Descriptions?
-
I normally embed YouTube clips without any problems into Woocommerce product descriptions using the ‘Add Media’ > ‘Insert from URL’ route. I always use the shared link given to me directly from YouTube.
However, I recently made a ‘clip’ and it won’t embed using the same method. YouTube clips are hosted from a YouTube user’s channel and are set to public. The clip I made I tested in a private browser so it is publicly accessible.
The format of the normal YouTube embed for the video is as follows:
https://youtu.be/vCEJJQwupwE?si=jd-zEvefH5_-qQRSThis embeds and displays using the ‘Add Media’ method which ends up as, [embed]https://youtu.be/vCEJJQwupwE?si=jd-zEvefH5_-qQRS[/embed] once it’s in the product listing.
The format of the ‘clip’ version is as follows:
https://www.youtube.com/clip/Ugkxz-FmjFrTtCNvKx-8wGJnfWksbuSVFgO6
The ‘clip’ version will not insert using the ‘Add Media’ method and will not show a preview.
However, if I choose to share the clip via the YouTube generated <iframe></iframe> tags, the clip will render in the editor on the product description page! (However, it won’t save as iframes seem to be a security risk.)
I suspect the native ‘Add Media’ method cannot parse the URL. I note the ‘clip’ URL has a subdirectory included but this shouldn’t be a problem as YouTube is on the list of WordPress oEmbed providers.
I do use Breeze for caching, but YouTube works fine as an embed.
It’s not the end of the world, but it would be nice to know why the ‘clip’ URL won’t embed.
- You must be logged in to reply to this topic.