• Resolved philwied

    (@philwied)


    Hello,

    I have a problem with the YouTube placeholder. I am using YouTube free plugin to embed YouTube Videos.
    If I deny Cookies, the placeholder is below the content of the post. The text of the post is showing up in columns. This is really strange and I think this was not the case until one of the last updates.

    This is the post/site I need help with: https://www.biosphaerenpark.eu/premiere-fuer-biosphaerenpark-film


    Maybe you can help me. Thank you very much.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor jarnovos

    (@jarnovos)

    Hi @philwied,

    I expect that you will have to wrap this video element in another pair of <div></div> HTML tags, so that the content will be correctly divided into it’s own, separate sections. Could you try that?

    Kind regards, Jarno

    Thread Starter philwied

    (@philwied)

    Thank you for your reply. I have YouTube Videos in <div> on other sites of this website and this works perfectly.
    But this is quite a big site with many videos in posts not wrapped in <div>. Maybe there is a workaround.

    Plugin Contributor jarnovos

    (@jarnovos)

    Hi @philwied,

    As this occurs due to the way how the HTML is structured, the way to resolve the behavior will be to wrap these iFrames in their own <div> element.

    But I understand that doing this manually on a large website is rather cumbersome, therefore you can use the below MU Plugin which will do that for you.

    Save the below file as a .php file and upload it to the /wp-content/mu-plugins/ folder on the website, this should do the trick:

    cmplz-add-div-to-iframes.php

    Note that you might also have to clear the cache in your caching tool(s) before these changes are reflected on the website.

    Kind regards, Jarno

    Thread Starter philwied

    (@philwied)

    Thank you very much. I will try this.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘YouTube placeholder crashes the site’ is closed to new replies.