I'm currently developping a custom page (a handmade one) for my Wordpress website. This page is used to check the validity of a token, if the token is still up, some videos are shown on the page otherwise nothing is shown.
Everything works perfectly for the token, but when I want to insert my <iframe>
, it doesn't work. I can see there is something on the page, but not the video and when I inspect the element on Mozilla I have this :
<iframe src="video url" allow="autoplay; encrypted-media" allowfullscreen="" frameborder="0" width="560" height="315">
#document
<html>
<head></head>
<body></body>
</html>
</html>
</iframe>
On another page, I'm using Elementor to build the page and to show some videos. When I inspect the element, I can see there are lot of stuff between <body></body>
under the <iframe>
.
So how can I put a youtube video in my custom page ?