Simply add the template="popup"
attribute in your video shortcode to show it in a popup.
Example #1:
Click the image above to open the video in a popup. The above example uses the shortcode below,[aiovg_video src="https://www.youtube.com/watch?v=5PSNL1qE6VY" template="popup"]
Example #2:
The previous example uses a YouTube video and our plugin auto-generated an image for the video. But, there are cases you may want to use a custom image.
The above example uses the following shortcode which is the modified version of the previous shortcode with our custom image URL.[aiovg_video src="https://www.youtube.com/watch?v=5PSNL1qE6VY" template="popup"]https://demo.plugins360.com/wp-content/uploads/2023/07/video-thumbnail-placeholder.jpg[/aiovg_video]
Example #3:
Sometimes, you may want to add the popup inline inside your page/post content. The following example adds the popup inline,
CLICK THIS LINK to open the popup. The above example uses the following shortcode which is the modified version of the previous shortcode.[aiovg_video src="https://rumble.com/v2id3fe-professional-wild-life-photoshoot-part-1-nature-sound-relaxing-video-and-so.html" template="popup"]CLICK THIS LINK[/aiovg_video] to open the popup.
Note the src
attribute in the shortcodes above. The src
attribute accepts any kind of video URL those are supported by our plugin like MP4, WebM, OGV, MOV, HLS, MPEG-DASH, YouTube, Vimeo, Dailymotion, Rumble, Facebook, etc.