Hi
I would like that the :hover action for “avia gallery -> Big image with small thumbnails below -> Use Lighbox Do you want to activate the lightbox -> Yes” for thumbnails is triggered via tap on mobile devices.
Thus, on mobile taping on a thumbnail would NOT trigger the lightbox but trigger display of the respective picture as “big image”.
tapping on the “big image” should still trigger the lightbox.
for me, this would improve the the galleries’ usefulness on mobile.
Thanks a lot!
Nico
Hey Nicolas,
Thank you for the inquiry.
We can set the big preview image to change on click or tap but you will lose the gallery’s lightbox functionality. If you want to proceed, edit the wp-content\themes\enfold\config-templatebuilder\avia-shortcodes\gallery\gallery.js file, and replace everything with this code:
// https://pastebin.com/A1NdePZ7
After that, edit the wp-content\themes\enfold\config-templatebuilder\avia-shortcodes\gallery\gallery.php which is located in the same folder, and look for this code around line 430:
$class = $counter++ % $columns ? "class='$imagelink $custom_link_class'" : "class='first_thumb $imagelink $custom_link_class'";
.. replace it with:
$class = $counter++ % $columns ? "class='$imagelink $custom_link_class noLightbox'" : "class='first_thumb noLightbox $imagelink $custom_link_class'";
This will disable the lightbox, so when you click on the gallery thumbnails the preview image will change and not open the lightbox container.
We can probably come up with a better solution in the future but this is beyond the scope of support.
Best regards,
Ismael
