- Posts: 3
- Thank you received: 0
Show filename in Responsive Lightbox
-
sjeng.aarts
Active member -
Topic Author
- Offline
- New Member
-
Less
More
18 hours 25 minutes ago #52212
by sjeng.aarts
Show filename in Responsive Lightbox was created by sjeng.aarts
Is there a way to show the filenames from the individual files in the image directory of the Hot Responsive Lightbox plugin?
I don't want to use the the alt values because the (many) images changes often.
I don't want to use the the alt values because the (many) images changes often.
Please Log in to join the conversation.
2 hours 56 minutes ago #52213
by milos
Replied by milos on topic Show filename in Responsive Lightbox
Hello,
This plugin shows the empty ALT value. If you want to have a text below the thumbnail image that shows the filename, it's possible, but this can't be any custom text. Just the image file name. To achieve this, edit the file /plugins/content/responsivelightbox/responsivelightbox.php and change this line:
to this:
Regards,
Milos
This plugin shows the empty ALT value. If you want to have a text below the thumbnail image that shows the filename, it's possible, but this can't be any custom text. Just the image file name. To achieve this, edit the file /plugins/content/responsivelightbox/responsivelightbox.php and change this line:
Code:
$output.= '<li><a href="'.URI :: base().'/'.$images_dir[0].$file.'" data-imagelightbox="'.$lightboxMode.'"><img src="'.$thumbnail_image.'" alt="" /></a></li>';
to this:
Code:
$output.= '<li><a href="'.URI :: base().'/'.$images_dir[0].$file.'" data-imagelightbox="'.$lightboxMode.'"><img src="'.$thumbnail_image.'" alt="" /></a><p>'.$file.'</p></li>';
Regards,
Milos
Please Log in to join the conversation.
Time to create page: 0.139 seconds