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:
A screenshot of a customized lightbox on a live Wix site.

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:

  1. Open the relevant lightbox from the Menus & Pages panel.
  2. Click the lightbox.
  3. Click the Layout icon .
  4. 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.
The lightbox layout panel. The cursor is hovering over the option to position the lightbox in the centre.

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:

  1. Open the relevant lightbox from the Menus & Pages panel.
  2. Click the overlay (the space around your lightbox).
  3. Click Change Overlay Background.
  4. 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.
  5. (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.
The overlay background panel. The cursor is hovering over the 'Settings' button.
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:

  1. Open the relevant lightbox from the Menus & Pages panel.
  2. Click the lightbox.
  3. Click the Design icon .
  4. 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.
  5. (Optional) Click Settings to adjust the overlay to your liking.
The lightbox background in the Editor. The cursor is hovering over the 'color' option.

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:

  1. Open the relevant lightbox from the Menus & Pages panel.
  2. Click the button.
  3. Change the text that appears on the button:
    1. Click Change Text.
    2. Enter the text into the field.
    3. Press Enter on your keyboard.
  1. Adjust the text alignment on the button:
    1. Click the Layout icon .
    2. Choose how the text is aligned; to the left, center, or right of the button.
the close button layout panel. The cursor is hovering over the option to align the text to the centre.

To design the lightbox Close button:

  1. Open the relevant lightbox from the Menus & Pages panel.
  2. Click the button.
  3. Click the Design icon
  4. Choose a design and click Customize Design to make further design changes.
  5. Click a preset at the top.
  6. 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.
  7. Choose what you want to customize:
  • Fill color & opacity : Choose a background color for the button, and adjust its visibility.
  • Border undefined: 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 undefined: 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 undefined: 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 undefined: 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).
The close icon design panel. The cursor is hovering over the Text tab, which is open.

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:

  1. Open the relevant lightbox from the Menus & Pages panel.
  2. Click the Close Lightbox (X) icon.
  3. Click the Design icon .
  4. 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).
The X icon design panel. The cursor is hovering over the border width slider.

Did this help?

|