Set a Custom Semi‑Transparent Lightbox Background in the Divi Gallery Module

Written by Dan Mossop

Control the look and feel of your gallery lightbox by applying a custom semi‑transparent background color to the overlay that appears when images are opened. This helps your media harmonize with your brand palette, improves focus on the content, and enhances contrast for captions and controls. In this guide we show you how to set a custom lightbox background color for your Divi Gallery and ensure it’s applied on the front end.

Set a Custom Semi‑Transparent Lightbox Background in the Divi Gallery Module using Divi Gallery Booster / Divi Booster

This method demonstrates how to apply a custom semi‑transparent overlay to your Gallery lightbox using the “Lightbox Background Color” option added by both Divi Gallery Booster and Divi Booster. It’s a quick, no‑code approach that keeps styling within Divi and includes a front‑end check to confirm the overlay adopts your desired color.

Add the Gallery Module and Choose Your Images

To get started, add a Gallery module to your page within the Divi Builder, then select the images you’d like to include in the gallery. You can use images already in your Media Library or upload new ones. Once you’ve chosen your images, they’ll appear in your Gallery module preview.

Open the Gallery Module’s Design > Lightbox Settings

With your Gallery module selected, go to the Design tab, locate the "Lightbox" section, and expand it. This is where you control the appearance of the background overlay when an image is opened in the gallery’s lightbox.

Choose a Custom Lightbox Background Color and Set Opacity

In the Lightbox section, find the "Lightbox Background Color" option and open the color picker. Here you can enter a specific hex code (for example, #005A2D for a rich green), and then adjust the Opacity slider or type in your desired transparency (such as 85%). This lets you achieve the perfect blend of color and transparency to suit your site’s style.

Publish and View Your Customized Lightbox

Once you're happy with your settings, publish the page. Then, visit your page on the front end, click any gallery image, and you’ll see your new semi‑transparent overlay in action. Confirm that the color and transparency appear just as you set them—your images and captions should now stand out against your branded lightbox background.

Conclusion

That’s it! You’ve learned how to easily adjust the Gallery lightbox overlay color and opacity in Divi for a look that fits perfectly with your site’s design.

We may earn a commission when you visit links on our website.

Discover Divi Gallery Booster

Enhance your Divi Gallery with the new lightbox background feature. Divi Gallery Booster lets you apply custom semi-transparent backgrounds effortlessly, creating a stunning visual experience that harmonizes with your brand aesthetic. Perfect for making your images pop and your design cohesive.

Latest Posts

Add a Visible Shadow to Divi Gallery Lightbox Arrows

Give the lightbox navigation arrows in your Divi galleries a stylish pop and improve their visibility by adding a shadow beneath the arrows. This quick guide will show you how to make your navigation arrows stand out against the lightbox overlay.Add a Visible Shadow...

Adjust Lightbox Arrow Size in Divi Gallery

Customize the size of the navigation arrows that appear in your gallery lightbox so they’re easier to see and aligned with your site’s design. Whether you want larger, more accessible controls or a subtler look, setting a precise arrow size creates a more polished...

Change Lightbox Arrow Color in the Divi Gallery Module

Make the lightbox navigation arrows in your Divi Gallery match your brand and stand out against your images by assigning a custom color. This improves visual consistency, enhances accessibility with better contrast, and elevates the overall browsing experience for...

Change the Divi Gallery Module Grid Image Scaling

Divi’s Gallery module offers a great way to showcase images, but it can sometimes stretch or crop them in unwanted ways. This article explains how to manage the module’s image scaling behavior to ensure your images are displayed at the correct size and aspect...

Set Custom CSS IDs for Individual Divi Accordion Items

Assigning unique CSS IDs to specific Divi Accordion items allows for precise control over styling, targeting, and linking within your page content. This ability is particularly useful when you want to apply custom designs or create anchor links to particular accordion...

About Dan Mossop

Dan is a Scottish-born web developer, now living in Brisbane with his wife and son. He has been sharing tips and helping users with Divi since 2014. He created Divi Booster, the first Divi plugin, and continues to develop it along with 20+ other Divi plugins. Dan has a PhD in Computer Science, a background in web security and likes a lot of stuff, 

0 Comments

Submit a Comment

Comments are manually moderated and approved at the time they are answered. A preview is shown while pending but may disappear if your are cookies cleared - don't worry though, the comment is still in the queue.

Your email address will not be published. Required fields are marked *.

Works with Divi 5

This feature has been tested and confirmed to work with Divi 5.

Works with Divi 4

Gallery Booster

All the Divi Gallery module features you need!

All licenses are lifetime – pay once, use forever.

Divi Booster

Hundreds of new features for Divi!

All licenses are lifetime – pay once, use forever.