Website Building » Wix » How Do I Add a Lightbox in Wix?

How Do I Add a Lightbox in Wix?

Last updated on October 1, 2022 @ 12:33 am

Adding a lightbox to your Wix site is a great way to showcase images and videos in a popup window. To add a lightbox, you’ll need to first create a new page or post, and then click on the “Add Media” button. From here, you can upload your images or videos, and then select the “Insert into post” button.

Once your media is inserted into the post, you’ll need to click on the “Text” tab in the editor toolbar. This will switch you over to the HTML view of your post. In the HTML view, find the code for your image or video, and add the following code around it:

GREAT NEWS:

Exciting update! We've collaborated with Wix to offer WBI users with a free plan for all website creation needs - Explore the details here.

PRO TIP: If you are not familiar with coding, we do not recommend adding a lightbox to your Wix website. Lightboxes can be tricky to implement, and if not done correctly, can cause your website to break.

Your image or video

Replace “URL of image or video” with the actual URL of your image or video file. Save your changes, and preview your lightbox in action!

Dale Leydon

Dale Leydon

Sysadmin turned Javascript developer. Owner of 20+ apps graveyard, and a couple of successful ones.