Demo – DIVI Masonry gallery with custom links from images
How to Add Links to the Divi Gallery Module and Show Captions on Hover
Add this CSS to your child theme stylesheet or the Divi options custom CSS box.
.masonry-grid-item h3,
.masonry-grid-item .et_overlay {
display: none;
}
.masonry-grid-item .et_pb_gallery_caption {
margin: 0 !important;
}
.masonry-grid-item p.et_pb_gallery_caption a {
position: absolute;
background: rgba(0, 0, 0, .5);
cursor: pointer;
opacity: 0;
-webkit-transition: all 1s ease;
-moz-transition: all 1s ease;
transition: all 1s ease;
top: 0px;
bottom: 0px;
right: 0px;
left: 0px;
width: 100%;
height: 100%;
}
.masonry-grid-item p.et_pb_gallery_caption a:hover {
opacity: 1;
}