How to open a YouTube video in lightbox in Divi button module

Product:

WonderPlugin Lightbox

Tutorial:

Divi Builder is a drag and drop page builder by Elegant Themes. This tutorial will show you how to open a YouTube video in a lightbox popup when clicking a Divi button.

1. In Divi builder, edit a button, in the Content tab, enter the YouTube URL to the Button URL:

2. In the Advanced tab, enter wplightbox to the CSS Class input box:

You could add custom CSS class names to specify the lightbox maximum width and height, for example, adding wplightbox-width-1024 and wplightbox-height-768 will specify the lightbox maximum width and height as 1024 and 768.