Video pop-up (Lightbox)

  1. From top bar click on settings and Choose Pro settings-

2. Copy and paste below code in your website

<script src="https://cdn.jsdelivr.net/npm/jquery@3.4.1/dist/jquery.min.js"></script>

<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/fancyapps/fancybox@3.5.7/dist/jquery.fancybox.min.css" />
<script src="https://cdn.jsdelivr.net/gh/fancyapps/fancybox@3.5.7/dist/jquery.fancybox.min.js"></script>

Click on Save button

Now add a HTML button to your website

Now copy the below code, and make sure to replace youtube link with your video link.

<a data-fancybox href="https://www.youtube.com/watch?v=_sI_Ps7JSEk" class="youtubebtn">
    Play Video
</a>

Remove the code from previously added widget and paste the above code and click on save button

Last updated