Black Friday Super Sale 2024 is Coming Soon

WIN AN iPAD, LIFETIME MEMBERSHIP
×

Search Divi Plus Documentation

Search for answers or browse our knowledge base.

All Topics
Print

How to display title and caption on overlay in DP masonry gallery

To display text on overlay you need to turn the overlay on in the module setting.

Please use the following CSS code snippet in the Divi Theme Options Custom CSS area to display the title and caption.

.dipl_masonry_gallery_title_caption_wrapper {
position: absolute;
top: 70%;
left: 50%;
z-index: 99;
width: 100%;
padding: 10px;
visibility: hidden;
opacity: 0;
transform: translate(-50%, -50%);
transition: all 300ms ease;
}
.dipl_masonry_gallery_item:hover .dipl_masonry_gallery_title_caption_wrapper {
top: 50%;
visibility: visible;
opacity: 1;
}
.dipl_masonry_gallery_item .et_overlay:before {
display: none;
}

In the module setting Show Title and Caption for both gallery and lightbox.

Output:

Table of Contents