Wysiwyg youtube

Support › General › Wysiwyg youtube

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #50183
    369cycle369cycle
    Participant

    Wysiwyg does not support displaying newly added YouTube videos from the new media list; videos can be added but not displayed. How can I configure it to support this?

    #50185
    PeterPeter
    Moderator

    Hello,

    Thanks for reaching out.

    If you want to display YouTube videos in the frontend when using WYSIWYG field, you need to use the embed code from YouTube, like

    <iframe width="560" height="315" src="https://www.youtube.com/embed/0Tch0N5nsRU?si=asOF9uYrSx8gOD2X" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>

    and set the sanitize callback option to none to save the HTML tags. Following the documentation https://docs.metabox.io/sanitization/

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.