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
#64640
Re:Fancy Lightbox and WPDataTables 5 Years, 10 Months ago Karma: 0
admin wrote:
If wpDataTables supports ability to add custom CSS class for the link then it is enough to add ari-fancybox CSS class.


I can add custom js and/or css, but how should the code be?
The administrator has disabled public write access.
 
#64643
Re:Fancy Lightbox and WPDataTables 5 Years, 10 Months ago Karma: 760
Try the following code instead of the previous one:

Code:


$(document).on('click', '.wpDataTable a:not(.ari-fancybox)', function(e) {
        if (e.isDefaultPrevented()) {
            return ;
        };

        var $this = $(this);
        $this.addClass('ari-fancybox');

        e.stopImmediatePropagation();
        setTimeout(function() {
            $this.click();
        }, 0);

        return false;
    });



If it doesn't help, please contact wpDataTable support and ask about callback support to add CSS class name to specific elements in table when is initialized.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#64648
Re:Fancy Lightbox and WPDataTables 5 Years, 9 Months ago Karma: 0
That worked! Thank you so much!

But now I have another issue. I want to be able to display a caption in the lightbox, but I am having problems with figuring out how to do that. WPDatatables support says that in order to display a thumbnail I should use the following code:
Code:

<img src="link_to_image" height="42" width="52">

And I imagine I can use the following code to add caption:
Code:

<img src="link_to_image" alt="This is the caption" height="42" width="52">

But this does not enable me to open the lightbox with the full size image. Do you have a suggestion on how I can achieve that?
You can see the support thread I have with WPDatatables here:
https://tmsplugins.ticksy.com/ticket/1910218https://tmsplugins.ticksy.com/ticket/1910218

I really hope you can help!
Thanks in advance.
Best regards
xega
The administrator has disabled public write access.
 
#64649
Re:Fancy Lightbox and WPDataTables 5 Years, 9 Months ago Karma: 760
If you want to show a title into the lightbox, it should be added via "title" attribute of <A> tag.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#64650
Re:Fancy Lightbox and WPDataTables 5 Years, 9 Months ago Karma: 0
Ok so there is no other way around this?
The administrator has disabled public write access.
 
#64651
Re:Fancy Lightbox and WPDataTables 5 Years, 9 Months ago Karma: 760
The plugin doesn't work with the provided HTML markup.

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