Style the Divi Gallery Lightbox Close Button

Written by Dan Mossop

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 how to style the Divi Gallery module lightbox close button to apply your chosen color and size and verify the result on the front end.

Style the Divi Gallery Lightbox Close Button using Divi Gallery Booster / Divi Booster

This method demonstrates how to style the Divi Gallery module lightbox close button using the Lightbox Close Button font controls provided by both Divi Gallery Booster and Divi Booster. It’s a quick, no-code approach to set a custom color and size and ensures the button renders at full opacity for clear, consistent visibility.

Access the Lightbox Close Button Styling Controls

Open the settings for your Gallery module and switch to the Design tab. Locate the “Lightbox Close Button” area, expand it, and click the color swatch in the Font controls to open the color picker.

Set a Custom Color and Ensure Full Opacity

In the color picker for the Lightbox Close Button, enter the color hex code you want to use (for example, #ff0000 for a bold red) and set the opacity to 100%. Close the picker to apply your changes.

Adjust the Close Button Size

Still in the Lightbox Close Button Font controls, find the Text Size field and set it to your preferred size (such as 50px for a prominent button).

Save and Publish Your Changes

Once you’ve customized the close button, save your Gallery module settings and publish the page to make your changes visible on the live site.

Preview and Confirm Your Lightbox Close Button

Visit your page on the frontend. Open an image in the gallery lightbox and check that the close button appears exactly as you set it—clear, bright, and sized just right (in this example, large and red at 50px with 100% opacity).

Conclusion

Customizing your Divi Gallery lightbox close button is straightforward with either Divi Gallery Booster or Divi Booster. With just a few tweaks, you’ll ensure your close button always matches your site style and is easy for visitors to see and use.

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

Enhance Your Gallery with Divi Gallery Booster

Unlock the full potential of your Divi gallery with Divi Gallery Booster. Customize the lightbox close button, set colors, and adjust sizes effortlessly. Make your gallery features stand out and improve functionality today.

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

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.