XF 2.2 Custom page code to display embeded youtube videos

steadypixel

Member
I just created a custom page successfully on my forum exactly here: https://naijafans.com/Livetv/ for embedding videos, youtube, or Facebook. what is the correct code formats or code syntax to paste in the Template HTML _page_node.63 that will output the video in the main URL page. kindly help, I'm lost
 
You get the HTML code from the media provider.

For YouTube click on the share link below the video then the embed option.
You will see something like this:
HTML:
<iframe width="560" height="315" src="https://www.youtube.com/embed/XPmBnnon0Ek" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

You don't need to edit the template directly - you can do it in the node list.
 
Back
Top Bottom