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?

Fancy Lightbox and WPDataTables
(1 viewing) (1) Guest
"ARI Fancy Lightbox" WordPress plugin
Go to bottomPage: 1234
TOPIC: Fancy Lightbox and WPDataTables
#64631
Fancy Lightbox and WPDataTables 5 Years, 10 Months ago Karma: 0
Hi!
I am working with WPDataTables and trying to get an image pop-up to open up in a lightbox instead of opening in a new page.
See example on this page: www.hafdal.dk/legstadaleit/index.php/2019/02/13/kalastadir/
(go to accordion, point called "Manntöl" and then point "Manntal 1860" to see a thumbnail).
What settings do I need to change to get ARI Fancy Lightbox to work on that image?
Best regards
xega
The administrator has disabled public write access.
 
#64633
Re:Fancy Lightbox and WPDataTables 5 Years, 10 Months ago Karma: 760
Hello,

Populate "Custom JS code" parameter with the following code on "ARI Fancy Lightbox -> Settings -> Advanced" page:

$('.wpDataTable A').addClass('ari-fancybox')

Regards,
ARI Soft
The administrator has disabled public write access.
 
#64634
Re:Fancy Lightbox and WPDataTables 5 Years, 10 Months ago Karma: 0
Hi
Thanks for your reply. I have added it, but it does not work. My custom js code box looks like this now:

setTimeout(function() {
$('.ari-fancybox').each(function() { var el = $(this), img = el.find('img'), title = img.attr('alt'); if (!title) return ;el.data('caption', title); });
}, 10);

$('.wpDataTable A').addClass('ari-fancybox');

Do you have another solution perhaps?
Best regards
Rakel
The administrator has disabled public write access.
 
#64637
Re:Fancy Lightbox and WPDataTables 5 Years, 10 Months ago Karma: 0
I really need this to work, any ideas how I can fix this?
Best regards
xega
The administrator has disabled public write access.
 
#64638
Re:Fancy Lightbox and WPDataTables 5 Years, 10 Months ago Karma: 760
If wpDataTables supports ability to add custom CSS class for the link then it is enough to add ari-fancybox CSS class.

You can also try the following code instead of the previous one:

Code:


setTimeout(function() { $('.wpDataTable A').addClass('ari-fancybox'); }, 700);



Regards,
ARI Soft
The administrator has disabled public write access.
 
#64639
Re:Fancy Lightbox and WPDataTables 5 Years, 10 Months ago Karma: 0
Hello again
Sorry that still does not work. Is the other code that I have in Custom JS code box interfering with this code? I tried placing the code at the beginning and at the end but it did not make a difference.

I've moved the table so it is easier for you to see it (only one image this time but I will be using it in a LOT of places). Go to www.hafdal.dk/legstadaleit/index.php/2019/02/13/kalastadir/ and see the image on the left to the name "Guðm. Guðmundsson". It still opens a new page when you click the image.

I really hope you can help!
Best regards
xega
The administrator has disabled public write access.
 
Go to topPage: 1234