Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 23/11/2024 Black Friday 2024

    BIG SALE, 30% discount for all our extensions. Use BF24 coupon code. Hurry up the discount is valid till 3 December.

  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

Open Thumbnails by Default (Solved)
(1 viewing) (1) Guest
"ARI Fancy Lightbox" WordPress plugin
Go to bottomPage: 1
TOPIC: Open Thumbnails by Default (Solved)
#72173
Open Thumbnails by Default (Solved) 4 Months ago Karma: 0
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?
Last Edit: 2024/08/19 19:46 By Josh.
The administrator has disabled public write access.
 
#72179
Re:Open Thumbnails by Default (Solved) 4 Months ago Karma: 760
Hello,

You can also try this solution.

Regards,
ARI Soft
The administrator has disabled public write access.
 
Go to topPage: 1