I noticed that when updating the Enfold theme recently, the lightbox was updated and now no longer displays the title of the image.
Can someone please help me fix this? I spent hours naming 100’s of images and don’t want to lose the ability to display their names in an image preview.
Also if I need to add/edit code, please explain which file I need to edit.
Thanks.
Nick
Hi Nick!
Can you please post the link to your website and show an example so we can point you out in the right direction?
Regards,
Yigit
Yes – website is here: http://www.nickboylephotography.com
Some images in this gallery here: http://www.nickboylephotography.com/wp-nbp2014/galleries/landscapes/
Hey Nick!
Do you mind creating a temporary admin login and posting it here privately? Titles display fine on my local installation
Cheers!
Yigit
Hey Nick!
Review your gallery now:
http://www.nickboylephotography.com/wp-nbp2014/galleries/landscapes/
I added the following code here:
function restore_image_title_lightbox($attrs, $entry) {
$attrs = array(
"title" => get_the_title(get_post_thumbnail_id($entry->ID))
);
return $attrs;
}
add_filter('avf_portfolio_image_attrs', 'restore_image_title_lightbox', 10, 2);
Cheers!
Josue
You are welcome, nice pictures :)
Regards,
Josue