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

Customize Lightbox Title Styling in the Divi Gallery Module

Adjust the appearance of the lightbox title that appears when visitors open images from a Divi Gallery to align with your brand and improve readability. Refining the title’s color, size, and weight enhances visual hierarchy, accessibility, and overall polish. In this...

Center the Lightbox Image Count in the Divi Gallery Module

Centering the image count in a gallery lightbox creates a cleaner, more balanced presentation and makes it easier for visitors to see where they are in the image set. This simple visual tweak can enhance readability, especially with larger images and longer captions,...

Style the Divi Gallery Module Lightbox Image Count

Tailor the appearance of the image counter in the Divi Gallery module lightbox to match your brand and improve readability. By customizing the counter’s color and typography, you ensure it displays clearly and suits your design. In this guide we show you how to style...

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.