Hi,
After recently updating to Newspaper 11.3.1, we noticed that all our Youtube embeds using the WordPress embed widget have begun covering the content. It may be a padding issue or lack of, but I’m not certain.
Is this a known issue, and if so, is there anything we can do to fix it?
Hi,
Thanks for getting back to us.
When we embed a youtube video it is on top of a couple of lines of text, making them not visible. For example, on this story, it is occurring: https://happilynews.com/military-dad-surprises-cheerleader-daughter-by-photobombing-group-photo/
It is difficult to see because the text is behind the video.
But the passage of text should read as follows:
<!– wp:paragraph –>
<p>The moment she saw her dad she jumped up in shock and her dad ran towards her.</p>
<!– /wp:paragraph –>
<!– wp:embed {“url”:”https://youtu.be/WGK0H-KpL3k”,”type”:”video”,”providerNameSlug”:”youtube”,”responsive”:true,”className”:”wp-embed-aspect-16-9 wp-has-aspect-ratio”} –>
<figure class=”wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio”><div class=”wp-block-embed__wrapper”>
</div></figure>
<!– /wp:embed –>
<!– wp:paragraph –>
<p>They both began to hug and wouldn’t let go of each other.</p>
<!– /wp:paragraph –>
<!– wp:paragraph –>
<p>Karlie said: “I was so relieved with joy that he was home and safe.</p>
<!– /wp:paragraph –>
<!– wp:paragraph –>
<p>“With everything going on with the military in other foreign places and some kids not being able to reunite with their parents, I had been so worried about my dad not making it home.</p>
<!– /wp:paragraph –>
<!– wp:paragraph –>
<p>“After crying to YouTube videos of people in the military’s kids being surprised by their parents returning home, I never thought that I would end up being one of those kids.</p>
<!– /wp:paragraph –>
<!– wp:paragraph –>
<p>“Thank you to everyone who participated and surprised me.”</p>
<!– /wp:paragraph –>
<!– wp:paragraph –>
<p>Dad, Kyle said: “I was nervous and excited to see her as the first half of the game took forever waiting to see her.</p>
<!– /wp:paragraph –>
<!– wp:paragraph –>
<p>“Then I felt relieved and overwhelmed when I saw her reaction.</p>
<!– /wp:paragraph –>
However, as you can see the video embed is covering the next six lines that should be straight after the video embed. So it seems to be a padding issue with the WordPress youtube embed widget.
This issue appeared to begin straight after we updated the theme to 11.3.1.
Hello,
I investigated your website and seems the problem comes from the Autoptimize plugin => https://i.imgur.com/u5MRJxq.png -> https://i.imgur.com/XsxSfxA.png, so please check the settings and optimization that you made.
Thank you!
Hi,
Thanks for helping us pinpoint that. Glad we were able to figure out the source of the issue. Appreciate your assistance on this.
Hi,
We disabled the Autoptimize plugin to see if that fixed the issue. However, the issue persists.
For example, in our latest article, the video embed is partly covered by two images hosted in a ‘gallery’.
https://happilynews.com/sneakerhead-dad-finds-pregnancy-test-in-shoe-box-surprise/
So we’re a little confused again as to the source. Can you assist in troubleshooting, please, as perhaps it is something else causing it?
Hello,
So if this is the section https://i.imgur.com/PxIdJXL.jpg then seems you use a plugin for youtube and have set the position absolute https://i.imgur.com/mkjkIML.png, but you can add the embedded code in the posts for youtube without a plugin.
Thank you!