I am trying to help a friend with their website.
They are using the Divi WordPress theme and want to use the slider gallery module but have the captions displayed below it to credit the photographers.
scouring the internet I have found this custom CSS snippet:
.et_post_gallery {padding: 0 0px 30px !important; border-top: 1px #ccc dotted; border-bottom: 1px #ccc dotted; margin-bottom: 30px;}
.et_pb_gallery_image {padding:30px;}
.et_pb_gallery_image a[title]::after {content: attr(title); width: 100%; text-align: center; padding: 8px 12px 8px 0; color: #aaa; position: absolute; left:0; top: 100%; z-index: 2; font-size: 80%;}
.et-pb-controllers {bottom: 50px;}
the only issue is that it calls up the title of the post, but I cannot figure out how to edit this snippet to instead reference the caption information of the image. changing "title" to "caption" doesn’t work.
if anyone is able to assist I would be really grateful.