Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
If I remember correctly didn't slideshow singleframe provide an 'active' class for the currently visible element?
It would be nice to have that again. Or is there a way to somehow provide that class via the jquery cycle custom settings? If so, how could I do it?
Thanks!
Comments
Comment #1
nickBumgarner CreditAttribution: nickBumgarner commentedI would also like this. Do you have any solution or further information on this topic?
Comment #2
NickDickinsonWildeyes, the active class can be set via the advanced options (requires the JSON2 library) available on the views UI setting page.
Comment #3
jberg1 CreditAttribution: jberg1 commentedI know this thread is super old. But everything I found online was vague and wasn't working. Even adding it to my own script to load the Jquery wasn't working. Not much documentation on how to enter it.
How I finally got it to work. Using the Advanced Options (requires the JSON2 library).
Under Slideshow->Settings->Advanced Options
Choose: "after". Then for the value enter:
$(this).addClass('active-slide');
Click "Update Advanced Option"
Then Choose: "before". Then for the value enter:
$(this).parent('.views-slideshow-cycle-main-frame').find('.active-slide').removeClass('active-slide');
Click "Update Advanced Option"
Update, Save View.
Hope this might help someone else.