Hi,
I want to execute a jQuery function when the lightbox divs are loaded.
Is there a small function or hook for it?
Hey (Email address hidden if logged out) ,
Yes, you can use wp_footer hook.
You can check on our documentation for different options and sample code: https://kriesi.at/documentation/enfold/add-custom-js-or-php-script/#add-a-script-to-footer-section
Best regards,
Nikko
Hi Nikko,
I know how that function works. Already using it but in that function I want to execute some jQuery when mfp-content is being displayed.
So when the lightbox divs appeared in the code.
Hi (Email address hidden if logged out) ,
I see, I apologize for misunderstanding.
Hooks and Filters only works on php, since the lightbox is run by a js script, you will either need to tweak avia-snippet-lightbox.js or maybe using events like onclick would help.
Best regards,
Nikko