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?

Replace Prettyphoto lightbox
(1 viewing) (1) Guest
"ARI Fancy Lightbox" WordPress plugin
Go to bottomPage: 1
TOPIC: Replace Prettyphoto lightbox
#62501
Replace Prettyphoto lightbox 6 Years, 10 Months ago Karma: 1
Hello. I try to replace the default pretty photo lightbox of VC Masonry Media Grid with ARI Fancy lightbox. When i select in Grid Builder "large photo" as the target, it should enable ARI Fancy Lightbox. But this does not happen.
Thanks in advance.
http://tripinpictures.com/galleries/test-gallery/
Last Edit: 2018/02/12 08:05 By Alexandros_T.
The administrator has disabled public write access.
 
#62502
Re:Replace Prettyphoto lightbox 6 Years, 10 Months ago Karma: 760
Hello,

Gallery plugin generates HTML code for galleries dynamically on client side so it is not possible to attach the lightbox in normal way. It can be done if gallery API emits an event when gallery is created. You can ask about it gallery plugin developers.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#62503
Re:Replace Prettyphoto lightbox 6 Years, 10 Months ago Karma: 1
Your support is greater than any other developer. You have previously offered me some js magic for another -client side- gallery using this code.

$(window).on('load', function() { $('.justified-image-grid A').attr('data-fancybox', 'pm-gallery'); });

Can we do something similar here?
I don't have coding skills. The gallery developer can offer this code in functions.php of my theme to remove the PrettyPhoto gallery.

function remove_vc_scripts(){
wp_enqueue_script('prettyphoto' );
wp_deregister_script('prettyphoto' );
}
add_action( 'wp_enqueue_scripts', 'remove_vc_scripts', 100 );

But do you have any idea how to register your lightbox this way?
Thanks again.
The administrator has disabled public write access.
 
#62511
Re:Replace Prettyphoto lightbox 6 Years, 10 Months ago Karma: 760
You can try to use the following code:

$(window).on('load', function() { $('A.vc_gitem-link').attr('data-fancybox', 'vc-item'); });

Regards,
ARI Soft
The administrator has disabled public write access.
 
#62513
Re:Replace Prettyphoto lightbox 6 Years, 10 Months ago Karma: 1
unfortunately this does not work
The administrator has disabled public write access.
 
#62515
Re:Replace Prettyphoto lightbox 6 Years, 10 Months ago Karma: 760
Then it needs to contact gallery developers as we wrote in our previous post and ask about API of their gallery.

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