-
AuthorPosts
-
September 7, 2016 at 12:52 pm #683096
Hi,
I have a problem or feature request with the Avia image element. I would like to see a description below the image in the lightbox. Is this possible?
And: I don’t see an option to open a different image in the lightbox. I have to versions of an image: one small image (353x229px) I would like to see in my content and a large version (1000x667px) of the image I would like to display in the lightbox. I cannot use the wordpress image presets because they alter the image proportions. The change the proportions to 4:3 ratio.
Any recommendations?
- This topic was modified 8 years, 1 month ago by Metasequ0ia.
September 7, 2016 at 2:33 pm #683147I did some further investigation.
There is a div below the image in the lightbox <div class=”mfp-title”></div>. So it seems that it is somehow possible to put an title or description there.
And I found this thread https://kriesi.at/support/topic/lightbox-titles-captions/#post-650091 with some code to achieve this. I did the suggested edits to the avia.js file but nothing changed. Maybe things have changed in the latest Enfold release?
September 12, 2016 at 8:33 am #684933Hi support team,
any ideas on this subject? I would love to have this answer solved in the next days because of a project deadline…
Thanks for your efforts!-Martin
September 12, 2016 at 1:24 pm #685066Hi,
Can you please post the link to your page?
To add titles to your images in lightbox, please go to Media Library and edit titles and alt tagsBest regards,
YigitSeptember 12, 2016 at 2:49 pm #685160Hi Yigit,
I already did as you advised but there are no title or description below my lightbox image.
What can I do?
September 12, 2016 at 3:08 pm #685182Hi!
Do you mind creating a temporary admin login and FTP logins and posting them here privately so we can look into it?
Cheers!
YigitSeptember 12, 2016 at 5:09 pm #685279Please see Login credentials in Private Content box. Thanks!
September 15, 2016 at 9:31 am #686787Any progress on this?
September 17, 2016 at 6:44 am #687844Hey!
It’s not working because the following script removes every title attribute of the link and image tags in the page.
//damit bei Mouseover auf Galeriebildern nicht der Dateiname angezeigt wird function add_custom_tooltip(){ ?> <script> jQuery(window).load(function(){ jQuery('a').removeAttr('title'); jQuery('img').removeAttr('title'); }); </script> <?php } add_action('wp_footer', 'add_custom_tooltip');
Regards,
IsmaelSeptember 17, 2016 at 1:58 pm #687929Hi Ismael,
great find! Thanks a lot! Titles appear now below lightbox imnage.
What about my second question? How can I have a different image in the lightbox?
-Martin
September 18, 2016 at 7:48 am #688063Hi!
The lightbox script is using the large thumbnail. You adjust the size of the thumbnail in the Settings > Media panel. Don’t forget to regenerate the thumbnails afterwards. https://wordpress.org/plugins/force-regenerate-thumbnails/
Cheers!
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.