That sounds odd, and I don't know how the post status being publish rather than draft could account for the video not displaying.
I created a demo on one of our test sandbox sites to show it working as expected, using your youtube URL.
You can see the page in question here: hidden link
And you can log in to the back end to see how it is set up with this link: hidden link
I suggest on your site you try re-testing on a minimal install, with all plugins except Toolset disabled and using a standard theme such as twentytwentyone.
OK, so it was the Siteground Optimizer plugin. More specifically the defer javascript feature. I've disabled it to get the YT embed to work, but other YT embeds work fine without that turned off. What do I have to exclude from deferring so I can have the optimization going for the rest of the site, but still be able to use toolset YT embeds?
I've performed some tests on my website with the 'SiteGround Optimizer' plugin, but couldn't reproduce this issue.
Can you please share temporary admin login details of a website, where this issue can be reproduced? I'll be in a better position to suggest the next steps accordingly.
Note: Your next reply will be private and making a complete backup copy is recommended before sharing the access details.
regards,
Waqar
The topic ‘[Closed] YouTube embed only works if page is saved as a draft.’ is closed to new replies.