Wix Editor: Customizing Your Lightbox
8 min read
Customize your lightbox to make it look how you want. You can choose an overlay to cover the page around the lightbox, set the lightbox's position, and change the background to create a design that's unique to your brand.
In this article, learn more about:
Adjusting the layout of a lightbox
Set where the lightbox pops up on your page. You can choose a corner of the page where it should appear, and adjust the distance of the lightbox from the edges of the screen (offset).
To choose your lightbox's layout:
- Go to your editor.
- Click Pages & Menu on the left side of the editor.
- Click Lightboxes.
- Click the relevant lightbox to open it.
- Select the lightbox in the editor.
- Click the Layout icon .
- Choose how you want to adjust the layout:
- Set position: Click a rectangle on the grid to set the position of your lightbox on the page.
- Horizontal offset: Move the box to the left or right of the screen.
- Vertical offset: Move the box up or down on the screen.
Setting up the lightbox overlay
Your overlay is the space around the lightbox that blocks out the rest of your site. This helps visitors focus on the message of your lightbox. Choose if your site visitors can click the overlay to close to the lightbox.
To set up the overlay:
- Go to your editor.
- Click Pages & Menu on the left side of the editor.
- Click Lightboxes.
- Click the relevant lightbox to open it.
- Click anywhere outside of the lightbox to select this area.
- Choose what to do next:
- Decide if visitors click the overlay to close the lightbox:
- Click Set Up Overlay.
- Enable or disable the Clicking Closes Lightbox toggle.
Note: If you disable this option, make sure that you have either an 'X' icon or 'Close' button on your lightbox.
- Design the overlay:
- Click Change Overlay Background.
- Choose between a color, image or video background.
- (Optional) Click Settings to adjust the overlay.
Tip: You can adjust the opacity of color and image backgrounds. We recommend making the overlay slightly transparent so that your visitors can still see the page behind the lightbox but understand that it is blocked.
- Decide if visitors click the overlay to close the lightbox:
Overlays on your mobile-friendly site:
- It is not possible to edit your lightbox overlay on the mobile version of your site.
- If you add a color or image overlay on desktop, this is automatically applied to your mobile site. However, if you add a video overlay, this will convert to a still image from the video on the mobile version of your site.
Setting the lightbox background
Choose to have either a color, image or video background on your lightbox. Depending on the type you choose, you can also adjust settings such as the visibility and scaling.
To choose a background for your lightbox:
- Go to your editor.
- Click Pages & Menu on the left side of the editor.
- Click Lightboxes.
- Click the relevant lightbox to open it.
- Select the lightbox in the editor.
- Click the Design icon .
- Click the type of background you want for your lightbox:
- Color: Select a color from the Color Picker, or add and adjust a stunning gradient.
- Image: Select your own image, one from Wix, or Shutterstock.
- Video: Select a free Wix video or upload your own.
- (Optional) Click Settings to adjust the background to your liking.
Customizing the lightbox Close button
Adjust the look and layout of the button visitors click to close your lightbox. You can choose the text, set the alignment of the button text, and customize its design for Regular and Hover view to make it stand out.
To customize the Close button:
- Go to your editor.
- Click Pages & Menu on the left side of the editor.
- Click Lightboxes.
- Click the relevant lightbox to open it.
- Select the lightbox in the editor.
- Click the Close button.
- Choose how to customize the button:
Change the text that appears on the button
Adjust the text alignment on the button
Design the button
Customizing the X icon
If you've enabled an X (close lightbox) icon in the Lightbox Settings panel, you can adjust its look to suit your aesthetic. Choose from a range of designs, and customize the color, visibility, and border.
To customize the X icon:
- Go to your editor.
- Click Pages & Menu on the left side of the editor.
- Open the relevant lightbox.
- Click the lightbox in the editor.
- Click the Close Lightbox (X) icon.
- Click the Design icon .
- Choose how you want to customize your X icon:
- Select a new design: Click a preset from the panel to set a new design for the icon.
- Customize the icon: Click Customize Design, and edit the icon how you want:
- Fill color & opacity: Select the icon's color from the color picker, and use the slider to make it more or less visible.
- Border: Choose a color for the icon border, and set its width (in pixels).
Did this help?
|