Skip to content

Instantly share code, notes, and snippets.

@wplit
Created July 11, 2022 12:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wplit/a15974ee9729b9538097b02e1c8d37f5 to your computer and use it in GitHub Desktop.
Save wplit/a15974ee9729b9538097b02e1c8d37f5 to your computer and use it in GitHub Desktop.
reapply lightbox functionality to page after lightbox closes
jQuery(document).ready(function($) {
$('.oxy-lightbox').on('extras_lightbox:close', function(){
setTimeout(function() {
if ( typeof doExtrasLightbox == 'function' ) {
doExtrasLightbox(jQuery('body'));
}
}, 500);
})
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment