Wix Editor: Customizing Your Lightbox
7 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 how to:
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:
- Open the relevant lightbox from the Menus & Pages panel.
- Click the lightbox.
- Click the Layout icon .
- Choose how you want to adjust the layout:
- Set position: Choose 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.
Changing 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. You can choose a color, image or video background for your overlay and adjust it as needed.
To change the overlay:
- Open the relevant lightbox from the Menus & Pages panel.
- Click the overlay (the space around your lightbox).
- Click Change Overlay Background.
- Choose the type of overlay you want on your lightbox:
- Color: Select a color for your overlay from the Color Picker.
- 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 overlay to your liking.
Tip:
We recommend that you make your overlay slightly transparent so that your visitors can still see the page behind the lightbox but understand that it is blocked.
Notes:
- You can not 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:
- Open the relevant lightbox from the Menus & Pages panel.
- Click the lightbox.
- 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 overlay 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 edit and align the button text:
- Open the relevant lightbox from the Menus & Pages panel.
- Click the button.
- Change the text that appears on the button:
- Click Change Text.
- Enter the text into the field.
- Press Enter on your keyboard.
- Adjust the text alignment on the button:
- Click the Layout icon .
- Choose how the text is aligned; to the left, center, or right of the button.
To design the lightbox Close button:
- Open the relevant lightbox from the Menus & Pages panel.
- Click the button.
- Click the Design icon .
- Choose a design and click Customize Design to make further design changes.
- Click a preset at the top.
- Select which state you want to adjust the design for:
- Regular: How the button looks before a visitor interacts with it.
- Hover: How the button looks when a visitor hovers their cursor over it.
- Choose what you want to customize:
- Fill color & opacity : Choose a background color for the button, and adjust its visibility.
- Border : Add borders to the button to create a contrast against your lightbox. Choose a color, and set the width to make it as big or as small as you need.
- Corners : Choose how you want to corners of your button to look. You can adjust each corner differently, and make them rounder or more square.
- Shadow : Add shadows to your button for a cool 3D effect. You can set the size, visibility, angle, and more to give it more impact.
- Text : Customize your button's text with settings such as font, size, and spacing. You can also add formatting like bold and italics, and choose the color.
Note:
The available customization options depend on:
- The design preset you choose.
- The state you choose to design for (regular or hover).
Customizing the X icon
If you've enabled an X (close lightbox) icon, adjust its look to suit your lightbox and overlay's aesthetic. Choose from a range of designs, and customize the color, visibility, and border.
To customize the X icon:
- Open the relevant lightbox from the Menus & Pages panel.
- 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?
|