Hello. I’m using the Gallery With Preview thumbnails : https://kriesi.at/themes/enfold/shortcodes/gallery/
(1) Is there a way to add a custom / selected css class to the thumbnail you’re on or hovering over?
(2) Also, is it possible to change the hover to a click?
Thanks!
Figured out #1. This jqeury adds the “first_thumb” class to the hovered element.
<script>
jQuery(document).ready(function($) {
jQuery(“.avia-gallery-thumb a”).hover(function(){
jQuery(‘.avia-gallery-thumb a.first_thumb’).not(this).removeClass(‘first_thumb’);
jQuery(this).addClass(‘first_thumb’);
})
});
</script>
Hi,
Please provide a link to the site/page in question.
Best regards,
Jordan Shannon
