Site icon Hip-Hop Website Design and Development

Divi wordpress theme caption beneath slider gallery

I’m making an attempt to assist a pal with their web site.

They’re utilizing the Divi WordPress theme and need to use the slider gallery module however have the captions displayed beneath it to credit score the photographers.

scouring the web I’ve discovered this practice CSS snippet:

.et_post_gallery {padding: 0 0px 30px !essential; 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 material: attr(title); width: 100%; text-align: heart; padding: 8px 12px 8px 0; shade: #aaa; place: absolute; left:0; high: 100%; z-index: 2; font-size: 80%;}
.et-pb-controllers {backside: 50px;}

the one problem is that it calls up the title of the publish, however I can’t work out the best way to edit this snippet to as an alternative reference the caption info of the picture. altering "title" to "caption" does not work.

if anybody is ready to help I’d be actually grateful.