Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1146904

    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!

    #1146918

    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>

    #1146968

    Hi,

    Please provide a link to the site/page in question.

    Best regards,
    Jordan Shannon

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.