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


Recent Events
  • 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.

  • 21/11/2023 BLACK FRIDAY 23 is coming

    BIG SALE, 35% discount for all our extensions. Use BF23 coupon code. Hurry up the discount is valid till 27 November.


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?

PrettyPhoto Displays Below Fancy Lightbox
(1 viewing) (1) Guest
"ARI Fancy Lightbox" WordPress plugin
Go to bottomPage: 1
TOPIC: PrettyPhoto Displays Below Fancy Lightbox
#61014
PrettyPhoto Displays Below Fancy Lightbox 6 Years, 8 Months ago Karma: 0
Hi, I'm trying to disable PrettyPhoto from opening beneath the ARI Fancy Lightbox on a website.

Link: www.davidphoto.ca/portrait-portfolio/

Plugins I'm running:

NextGEN Galleries
Justified Photo Grid
ARI Fancy Lightbox

Client wants the functionality of deeplinking, which is why I purchased ARI Fancy Lightbox. I know NextGEN offers that, but am trying to keep cost low for client.

When you click on an image, Fancy Lightbox displays beautifully. But when you close it, the image you clicked on is still displayed in a PrettyPhoto lightbox and you have to close that, too.

Things I have done:

In NextGEN Galleries > Other Options > Lightbox Effects set to ARI Fancy Lightbox and set to only apply to nextgen galleries and WordPress images.

In Justified Image Grid > Lightboxes > Lightbox Type > set to Custom. Mobile version is set to Same as desktop.

I have not tried adding a link class or rel because I thought Fancy Lightbox would do that (which it does), but am thinking the PrettyPhoto needs to be removed somehow.

Thanks!
The administrator has disabled public write access.
 
#61020
Re:PrettyPhoto Displays Below Fancy Lightbox 6 Years, 8 Months ago Karma: 747
Hello,

PrettyPhoto is attached to images by theme. To fix this issue, open "Advanced" tab on "ARI Fancy Lightbox -> Settings" page and populate "Custom JS code" texture with the following code:


setTimeout(function() {
$('a[href$=jpg], a[href$=JPG], a[href$=jpeg], a[href$=JPEG], a[href$=png], a[href$=gif], a[href$=bmp]:has(img)').off('click.prettyphoto');
}, 10);


Regards,
ARI Soft
The administrator has disabled public write access.
 
#61028
Re:PrettyPhoto Displays Below Fancy Lightbox 6 Years, 8 Months ago Karma: 0
Thank you! That worked perfectly. Much appreciated for the assistance.
The administrator has disabled public write access.
 
#61493
Re:PrettyPhoto Displays Below Fancy Lightbox 6 Years, 6 Months ago Karma: 0
Hello again,

Sorry to reopen this issue, but the problem has not resolved itself on one particular gallery. See the link: www.davidphoto.ca/wedding-photographers-toronto/

Could it be the type of album it's displaying?

Thanks!
Olga
The administrator has disabled public write access.
 
#61496
Re:PrettyPhoto Displays Below Fancy Lightbox 6 Years, 6 Months ago Karma: 747
Try to replace the following code:

Code:


setTimeout(function() {
$('a[href$=jpg], a[href$=JPG], a[href$=jpeg], a[href$=JPEG], a[href$=png], a[href$=gif], a[href$=bmp]:has(img)').off('click.prettyphoto');
}, 10);



with the following one:

Code:


    $(window).load(function() {
        $('a[href$=jpg], a[href$=JPG], a[href$=jpeg], a[href$=JPEG], a[href$=png], a[href$=gif], a[href$=bmp]:has(img)').off('click.prettyphoto');
    });



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