Customize the Lightbox Image Background Color in the Divi Gallery

Written by Dan Mossop

Control the color that appears behind your images when users open in the gallery lightbox, including support for semi-transparent hues. This helps improve contrast for transparent images, align the experience with your brand palette, and create a more polished viewing environment. In this guide we show you how to set a custom background color for the image area in the Divi Gallery lightbox.

Customize the Lightbox Image Background Color in the Divi Gallery Module using Divi Gallery Booster / Divi Booster

Before we start, note that Divi itself does not provide a built-in option for changing the lightbox image background color in the Gallery module. This guide covers a feature added by the Divi Gallery Booster and Divi Booster plugins, which is not available by default in Divi. This setting is especially helpful for images with transparent or semi-transparent areas, as your chosen color will only appear behind these parts of the image.

Locate the 'Lightbox Image Background Color' Setting in the Gallery Module

Open the settings for your Gallery module in the Divi Builder. Head to the "Design" tab, then scroll down and expand the "Lightbox" section. Here, you'll find the setting labeled "Lightbox Image Background Color". If you don't see this option, ensure you have either the Divi Gallery Booster or Divi Booster plugin installed and activated.

Choose and Apply Your Custom Background Color

Click the color swatch next to the Lightbox Image Background Color setting to open the color picker. Select the color you want, and feel free to adjust the opacity slider for semi-transparent effects. For example, you might set a golden yellow (`#ffc800`) at 80% opacity for a warm, branded look. Once you're happy with your choice, close the color picker to apply your changes.

Save Your Changes and View the Result

After setting your preferred lightbox background color, remember to save your changes in the Divi Builder and update or publish your page. To preview the effect, open your page on the front end and click a gallery image—ideally one with transparent or semi-transparent sections. The lightbox background behind the image should now reflect your chosen color.

Conclusion

That's it! You've now added a custom background color behind gallery images in the Divi lightbox—perfect for enhancing the appearance of images with transparency and matching your site's style.

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

Discover Divi Gallery Booster

Divi Gallery Booster adds all the missing options you need to style your Divi gallery modules with ease. Save time and impress your site visitors and clients with breathtaking galleries.

Latest Posts

Style the Divi Gallery Lightbox Close Button

Give your gallery lightbox a clear, on-brand close button by customizing its color and size. This improves visibility and usability against varying image backgrounds and ensures the button renders at full opacity for a consistent experience. In this guide we show you...

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

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.