I wrote a jQuery snippet to open thumbnails when opening the gallery:
Code: |
$('.ari-fancybox').click(function(){
setTimeout(function(){
if ("onhashchange" in window) {
$('.fancybox-button.fancybox-button--thumbs').trigger('click');
}
}, 500);
});
|
The half second delay is to allow enough time for the gallery to load. Note that I couldn't get this to work in the advanced tab, but it should work when loading within a theme.js file followed by wrapping it with a jQuery container.
Is it possible when the lightbox is opened for thumbnails to open by default? I see that when the class "fancybox-show-thumbs" exists on the div with fancybox-container it shows the thumbnails. Is there JavaScript that can be appended to the lightbox that adds class "fancybox-show-thumbs" when the lightbox loads?