Create a YouTube Video Popup

To create a YouTube Video Popup with EngageBox you need to use the iFrame box type which makes it easier to fetch the content of an external URL like YouTube, Google Maps or even a Joomla article.

Step 1: Find the YouTube Video Embed URL

Visit YouTube, find the video you'd like to embed and click on the "Share" button below the video player. Then click on the "Embed" button and copy the only the URL from the embed code.

Create a YouTube video popup for Joomla

Step 2: Create an iFrame Box Type

Go to Components -> EngageBox and click to create a new box.

Create a YouTube video popup for Joomla

  • Set box's type to iFrame in the respective dropdown at the right side.
  • Paste the YouTube iFrame URL you copied in the previous step into the URL field.
  • Enable the Remove on close option if you don't want the video to continue playing after it has been closed.

Make YouTube Video Autoplay

To make the YouTube video autoplay when the popup is triggered, you need a couple of things.

  1. Append ?autoplay=1&mute=1 to the iFrame URL
  2. Add allow="autoplay" to the iFrame HTML Attributes option
Last updated on Oct 29th 2024 14:10