Painting Theme – Youtube embed gets stripped

Home Forums All Other Themes Painting Theme – Youtube embed gets stripped

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #110396
    Lori SchroederLori Schroeder
    Participant
    • Topics: 41
    • Replies: 59
    • Total: 100
    Member since: August 20, 2015

    I have a Youtube video embedded on my site, on the home page in section 1. The link is this:
    <iframe src=”https://www.youtube.com/embed/W2vQDduYThU?autoplay=1&rel=0&showinfo=0″ width=”1100″ height=”619″ frameborder=”0″ allow=”autoplay; encrypted-media” allowfullscreen></iframe>

    However, whenever I change anything in some of the other sections and save, it strips out part of the embed code and I end up with this:
    <iframe src=”https://www.youtube.com/embed/W2vQDduYThU?autoplay=1&rel=0&showinfo=0″ width=”1100″ height=”619″ frameborder=”0″ allowfullscreen=””></iframe>

    It removes allow=”autoplay; encrypted-media” so the video no longer autoplays. I then have to go back into that section and add it back in. Is there any way to stop it from taking this out? My site is http://www.capitalgymnasticsntc.com/

    Thank you.

    #110634
    Sonl SinhaSonl Sinha
    Moderator
    • Topics: 0
    • Replies: 31028
    • Total: 31028
    Member since: August 16, 2013

    Hi,

    Kindly go to Appearance >> Theme Options >> Basic Settings >> Custom CSS Box:

    Add this code there:

    .video iframe { box-sizing:border-box;}

    Regards,
    Dave

    #110905
    Lori SchroederLori Schroeder
    Participant
    • Topics: 41
    • Replies: 59
    • Total: 100
    Member since: August 20, 2015

    Thanks, I’ll give that a try.

    #111063
    Sonl SinhaSonl Sinha
    Moderator
    • Topics: 0
    • Replies: 31028
    • Total: 31028
    Member since: August 16, 2013

    Okay

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