Source: https://nishanth-fern-test.docs-staging.pageloop.ai/web/embedding-a-video-in-a-pop-up-using-the-url

# Embed a video in a Pop-up using the URL

Whatfix enables the addition of videos to Pop-ups to engage users with a visual message. The Visual Editor enables adding video to the Pop-up template directly using the UI.

Use the following steps to add a video to your Pop-up using the Visual Editor:

> [!WARNING]
>
> - You cannot embed videos hosted on file sharing websites such as Google Drive, Dropbox, and more using the URL method. A published video's URL from your authorized video channel (Youtube, Vimeo, and more) is needed to embed videos to Whatfix Pop-up templates. To embed a video link hosted on Google Drive, try [Embed a video hosted on Google Drive using Embed code](https://support.whatfix.com/studio/docs/embed-a-video-hosted-on-google-drive-using-embed-code).
> - If the Pop-up is shown in a secure webpage (**https**) and the video is hosted on a non-secure website (**http**), then the video is displayed as a broken link to the end users.

Use the following steps to embed a video URL in a Pop-up using the Visual Editor:

1. On the Whatfix Guidance dashboard, click **Widgets**. ![ia\_left\_nav\_widgets](/images/d4/ia_left_nav_widgets-d468b7f8.png)

2. Click **Pop-ups**. ![ia\_widget\_popups](/images/f2/ia_widget_popups-f2f9e0ad.png)

3. Hover your cursor over the Pop-up segment you want to configure, and then click the **Edit** icon. ![Edit\_popup\_DB](/images/68/Edit_popup_DB-6885e56b.png)

4. In the **Description** section, place the cursor where you want to add the video and double-click to open the **Rich Text Editor**. ![RTE\_add\_video](/images/d6/Screenshot-2024-07-09-at-11.28.27-AM-d6327934.png)

5. Click the **+** icon. The **Add Component** dialog box opens. ![Add\_component](/images/d3/Screenshot-2024-07-09-at-11.28.27-AM-1-d3804c0d.png)

6. On the **Add Component** dialog box, click **Video**. ![Click\_Video\_Addcomponent](/images/58/Click_Video_Addcomponent-5852ff0d.png)

7. Paste the video URL. ![Insert\_video\_URL](/images/7c/Screenshot-2024-07-06-at-11.26.00-PM-1-7c322183.png)

> [!WARNING]
>
> The video URL must contain **https** if the pop-up is displayed on a secure webpage.

1. Click **Insert**. ![Click\_insert\_video](/images/ce/Click_insert_video-ce5d02b1.png)

> [!INFO]
>
> - Use the **Drag and Drop** feature to move or reposition the video around the Pop-up.
> - Use the Drag Handlers to move or reposition the video both vertically (column-wise) and horizontally (row-wise).
>
> ![Video\_DND](/images/5a/Video_DND-5a113906.png)

> [!WARNING]
>
> - You might not be able to undo certain changes once you make changes to the Pop-up using the Drag Handlers. In that case, re-creation of the Pop-up may be necessary.
> - If you want the video to autoplay for your end users, click **Autoplay** while inserting the video. ![Autoplay videos on pop-ups](/images/37/Pop-up_video_autoplay-374afc66.png)

1. Once the video is added, click **Set Visibility Rules →**. ![studio\_pop\_up\_VR](/images/5b/studio_pop_up_VR-5b60830d.png)

> [!INFO]
>
> Click the **Save** button to save and mark the Pop-up as an inactive draft. You can resume editing by clicking the **Edit** icon.

1. Set the Visibility Rules for the Pop-up to appear. For more information on the different conditions that can be used in Visibility Rules, see [Visibility Rules](/desktop/visibility-and-display-rule-conditions).
2. Click **Edit Pop-up** or **Finish later** based on your preference. ![Studio\_pop-up\_finish later or edit](/images/39/Studio_pop-up_finish-later-or-edit-392012a0.png)
3. Once you have set the Visibility Rules, select the Pop-up using the checkbox, and then click **Send to ready**. ![clm\_db\_send\_to\_ready](/images/10/clm_db_send_to_ready_button-10028ee6.jpg)
4. Go to the **Ready** stage, and then click **Publish**. ![clm\_db\_push\_to\_production](/images/04/db_clm_publish-04a722c8.jpg)

## Related

- [Pop-ups](/web/pop-ups)
