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

Top (or Bottom) Align Divi Icon List Module Icons

When Icon List items wrap onto multiple lines, the default icon alignment can make the icon appear vertically centered next to the text, which may look unbalanced or harder to scan. Setting the icons to align at the top creates a cleaner, more consistent...

Make Divi Button Modules Full Width with Centered Content

This configuration makes a Divi button stretch to the full width of its container while keeping its label neatly centered, creating a bold, edge-to-edge call-to-action. You might want this for hero sections, pricing tables, or any layout where a standard-sized button...

Fix the Flickr Typo in the Divi Social Media Follow Module

Sometimes it's the small things that make the difference... there is a minor typo in the Divi Social Media Follow module that was present in Divi 4, and (currently) remains in Divi 5. Specifically, the tooltip for Flickr is misspelled as "Flikr". Here's how to fix...

Add a Frosted-Glass Background Blur in Divi

Give your Divi layouts a polished, glassmorphism look by blurring the content behind a semi‑transparent Divi section, row or module. This effect enhances readability over busy or textured backgrounds while preserving the visual impact of your imagery and layout. In...

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 *.

Compatible with

Divi 5

Divi 4

Get this feature

This feature is included in the following plugins:

Divi Gallery Booster

About Divi Gallery Booster