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?

Need a way to disable lightbox for image blocks
(1 viewing) (1) Guest
"ARI Fancy Lightbox" WordPress plugin
Go to bottomPage: 1
TOPIC: Need a way to disable lightbox for image blocks
#68407
Need a way to disable lightbox for image blocks 3 Years ago Karma: 0
We've used the no-lightbox class to avoid the lightbox on certain images in the past. Now that we are using Blocks more, we need a way to disable the lightbox on specific blocks but if we add no-lightbox to the link classes on an image block it gets assigned to a figure tag, not the link tag so it doesn't work.

Can you enhance ARI Fancy Lightbox so it also prevents the lightbox when the no-lighbox class is on a containing element like the figure tags used by the core Image Block and some other 3rd party image blocks?
The administrator has disabled public write access.
 
#68425
Re:Need a way to disable lightbox for image blocks 3 Years ago Karma: 760
Hello,

Try to add the following code to "Custom JS code" parameter on "ARI Fancy Lightbox -> Settings -> Advanced" page:

Code:


$('.no-lightbox A').each(function() { $(this).addClass('no-lightbox'); });



Regards,
ARI Soft
The administrator has disabled public write access.
 
#69074
Re:Need a way to disable lightbox for image blocks 2 Years, 5 Months ago Karma: 0
Can confirm that this solution also works with the elementor plugin by assigning the css class to the widget which will then prevent that particular element being passed to fancybox.

I needed to open some sites in a separate tab, rather than a fancybox, but I had other links on the page that I wanted opened via fancybox and this solution worked a treat. Thank you.

Using WP 6.0.1 and Elementor 3.6.7
The administrator has disabled public write access.
 
#69080
Re:Need a way to disable lightbox for image blocks 2 Years, 5 Months ago Karma: 760
Hello,

If an element contains "no-lightbox" CSS class then lightbox will not be attached to it.

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