Adding a Youtube video gallery to a Page

So apparently the way I have embedded a youtube player and video list has caused a bunch of javascript errors.

I have been using the official Youtube plugin and have added a video player and gallery of my channel on this page:

This is the code I have added to the video page that the Youtube plugin had given me:

[embedyt] https://www.youtube.com/embed?listType=playlist&list=UUkbzQe9G_drgd3QoLmHZNfw&layout=gallery[/embedyt]

However, I was told in another thread that’s not right and why I’m having some javascript issues:

So I was told to try the Responsive Code on this page:

https://demo.theme.co/integrity-1/shortcodes/responsive-video/

So I pulled the code listed for youtube:

[x_video_embed]<iframe width="560" height="315" src="http://www.youtube.com/embed/gLLFPfk14UI" frameborder="0" allowfullscreen></iframe>[/x_video_embed]

And tried a couple of different things without any success:

[x_video_embed]<iframe width="560" height="315" src="https://www.youtube.com/embed?listType=playlist&list=UUkbzQe9G_drgd3QoLmHZNfw&layout=gallery" frameborder="0" allowfullscreen></iframe>[/x_video_embed]

[x_video_embed]<iframe width="560" height="315" src="https://www.youtube.com/c/ohiocannabis" frameborder="0" allowfullscreen></iframe>[/x_video_embed]

All I’m getting is a big empty box on the video page:

So what am I doing wrong?

Thank you!

Ok so I just added a proper Block to the page for a Youtube Wizard and added the channel and now have a totally different outcome. The Youtube Block is now populating the Youtube player and videos in the Pages editing area:

So is this the proper way to embed the video player and gallery?

Should some of my javascript issues go away now since it’s added as a Block now instead of just a piece of code in a paragraph block?

Hello John,

I have checked the page and everything seems in order. There are no JS errors either. This simply means that you are doing it correctly. By the way, Since you have installed a caching plugin W3 Total Cache plugin, please clear your plugin cache before testing your site. This can cause the changes to not take place on the front end. It will eventually show up when the cache regenerates, but it’s not ideal if you’re looking to see your changes immediately. Caching plugins are best to turn on only when you’ve finished building the site.

Regards.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.