Hello, I added an image gallery ( default wordpress ) within the portfolio item.
At the opening of the images ( with lightbox ) not seeing any title under the photo. I need to make visible the titles here “mfp-title”.
Thanks
Hi serg1o!
The WordPress gallery shortcode does not set titles on the link or images but we can change our magnific script to pick up the alt text instead.
Open up /enfold/js/avia.js and on line 847 you should see this.
if(!title) title = item.el.find('img').attr('title');
And this on the next line.
if(!title) title = item.el.find('img').attr('alt');
And then make sure to set the alt text of your images as you select them for the gallery.
Cheers!
Elliott
Perfect! :-)
Thanks