Hello,
Thank you for reaching out to us with your question about displaying YouTube videos within the media gallery on your site.
I checked the example page you provided (hidden link), but it appears that there are currently no YouTube videos present on the page. If you've removed them, please let me know if you'd like assistance with re-adding YouTube videos to your media gallery.
However, based on the information you provided, it's possible that you might encounter issues displaying YouTube videos within a custom iframe. For example, try placing an iframe with a hard-coded Youtube URL in the src attribute, like this:
<iframe src="<em><u>hidden link</u></em>" allow="autoplay; encrypted-media" allowfullscreen="" width="525" height="295" frameborder="0"></iframe>
The video will not play, because of security measures in place on Youtube.com. As you can see, this is not a Toolset-specific problem, it is because of how YouTube enforces security of their embedded content.
To display YouTube videos on your site, we recommend the following approaches:
Toolset Types "Embedded Media" Field: You can use the Toolset Types "Embedded Media" field type to store YouTube video URLs and display the videos. This field type is designed to handle embedded content, including YouTube videos, and ensures proper rendering.
WordPress Embed Shortcode: You can also use the WordPress built-in embed shortcode with the Types URL field. This shortcode allows you to easily embed YouTube videos by simply pasting the video URL into your content, like this:
[embed]<em><u>hidden link</u></em>;
Replace it with the actual YouTube video URL.
By following either of these approaches, you should be able to display YouTube videos on your site without encountering security restrictions.
If you have any more specific questions or need further assistance with implementing these solutions, please feel free to provide more details, and we'll be happy to help.
Best regards,