hakhakobian / regallery

ReGallery is a FREE, SEO-friendly plugin enhanced with stunning Mosaic and Masonry views, designed to make WordPress gallery more beautiful and engaging.
https://wordpress.org/plugins/regallery/
MIT License
1 stars 0 forks source link

lightbox shows name instead of "caption" #32

Open yagilm opened 1 week ago

yagilm commented 1 week ago

WP version: 6.6.2 ReGallery version: 1.8.2

When Lightbox-> Caption position is set (so it's not none), the caption in the lightbox shows the name of the file rather than the caption.

hakhakobian commented 1 week ago

Hey there! Thanks so much for choosing the ReGallery plugin! Just a quick heads-up — we’ve designed the Lightbox to display the image title and description.

yagilm commented 1 week ago

Thank you for the quick reply @hakhakobian ! I was searching how to change that (maybe with CSS?) but it's not my strong point, would you have any suggestions? Also, if you direct me to the relevant php code/file (also not my strong point), I could try to make a PR adding the option caption/name in the Caption position selection..

hakhakobian commented 1 week ago

You can easily change the code to show image caption instead of the title: change $item['title'] = html_entity_decode(get_the_titlewp_get_attachment_caption($images_id)); with $item['title'] = html_entity_decode(wp_get_attachment_caption($images_id)); in the "plugins/regallery/includes/gallery.php" file.

yagilm commented 1 week ago

Thank you very much! :bow:

hakhakobian commented 1 week ago

I and my team would appreciate it if you could leave a review on wp.org. Your feedback will help our users and support us in continuing to improve the plugin.

yagilm commented 1 week ago

My wordpress.org account is pending approval. When this happen I will review first thing. I really enjoy your plugin (after trying many many galleries). Thank you again, for the help and of course the plugin!