How To Show Videos In A Lightbox
Last Update: February 27, 2024
The lightbox we use in Avada is called iLightbox and it is compatible with Youtube, Vimeo and self-hosted videos. The Lightbox can be triggered from the Lightbox Element, but also in many other places thoughout Avada. Read on for more information on where and how you can show videos in a Lightbox in Avada.
Locations You Can Show Videos In A Lightbox
How To Link Videos In Columns
Step 1 – Edit the column you’d like to link a video to, or create a new one.
Step 2 – In the Column options, set a video URL in the Link URL field.
Step 3 – In the Link Target option below this, choose Lightbox from the options.
Step 4 – That’s it. Your entire column is now a link and the video will open in a lightbox when the column is clicked.
How To Insert Videos In The Lightbox For Portfolio Posts
Step 1 – Open the portfolio post you’d like to add a video to, or create a new one.
Step 2 – In the Avada Page Options, locate the ‘Video URL for Lightbox‘ field and paste your video’s link URL. For example, https://vimeo.com/63534746. You can insert both Youtube/Vimeo videos and self-hosted videos.
Step 3 – Once you’re finished making changes, click Save Draft or Publish/Update.
The video is triggered by the Zoom icon on the Portfolio item thumbnail.
How to Launch a Video through the Lightbox Element
How to Launch a Video through the Button Element
You can also launch a YouTube or Vimeo video in a Lightbox through the Avada Builder Button element.
How To Insert Videos In The Lightbox For Regular Media
Step 1 – Open the page or post you’d like to add a video to, or create a new one.
Step 2 – Click the Insert/Edit Link button in the top row of the page editor, just after the alignment buttons.
Step 3 – Click the Link Options (the cog icon) and paste your video’s link URL in the URL field. For example, https://vimeo.com/63534746. Add your Link Text in the Link Text field below this.
Step 4 – Once you’ve inserted the link URL, click the Add Link button on the lower right corner.
Step 5 – After you insert the video, you must add rel=”iLightbox” to the link tag. As an example, please refer to the image below.
How To Set Video Size in Avada Global Options
Step 1 – Navigate to the Avada > Options tab.
Step 2 – Go to the Lightbox tab, and locate the Slideshow Video Width and Height options. Set the width and height of your video by entering a pixel value into the corresponding setting. For example,1280px for the width and 720px for the height.
Common Issues or Questions
My Youtube or Vimeo video is too large!
This issue is because you’re using the embed URL instead of the link URL.