How to Create a Video Popup in Divi with Divi Overlays

Introduction

With Divi Overlays is easy to create Video Popups using Divi. You can add any video from your Media Library, YouTube, or Vimeo with just a few steps.

 

Step 1: Adding a new Divi Overlay post

1. Go to Divi Overlays
2. Add new
3. Set a Title to the new post
4. Enable Divi Builder

 

Step 2: Importing the Premade layout

To make things extra easy, we have several layout templates for popup videos. In this tutorial, we’re using the premade layout Simple-Video-Popup-Divi-Overlays.json.
You can download this layout going to your Divi Life Customer Portal > Plugin Layout Templates tab.

1. Select portability options
2. Click on Import
3. Select the Divi Overlays layout you want to import (make sure it’s extracted from the .zip file. It must be .JSON format)
4. Import Divi Builder Layout

 

Step 3: Changing the Video.

This premade layout uses a YouTube embed code (iFrame), however you can easily change it to another video service such as Vimeo.

  • Go to the code module “Video Embed”

Creating a Popup Video with YouTube

  • If you’re using a YouTube video, you can simply replace the URL of the video. Here are the parts
    – Red underline: the YouTube video URL.
    – Green underline: the autoplay settings.

If you want to remove the autoplay, simply remove the part with the green underline.

?rel=0;&autoplay=true

 

If your video is a YouTube video, then you can click save and Publish the post after following the steps above! (scroll down for trigger options).

If you’re video is a Vimeo video, then keep reading!

Creating a Popup Video with Vimeo

  • If you are adding a Vimeo video, you can add it in the code module too, but you need to remove all the iFrame code. So remove the iframe code

 

  • Paste the new iFrame code from Vimeo. To get the iFrame code, go to the video
    – Share button – Copy Embed Code

 

  • Then paste it into the code module:

If you want the video autoplay for Vimeo videos, here is the doc on how to do it:
Autoplaying and looping embedded videos – Vimeo Help Center (zendesk.com)

Triggering Your Popup Video

Before your video popup can be used, you need to either set an automatic trigger, or configure a click trigger. Take a look at the docs below for help on setting up triggers within Divi Overlays.

Automatic triggers:

 

Manual triggers:

 

 

Pin It on Pinterest