Skip to content

Instantly share code, notes, and snippets.

@carmoreira
Created August 21, 2018 09:53
Show Gist options
  • Save carmoreira/ff8967a92f417ac088c50c2832c42176 to your computer and use it in GitHub Desktop.
Save carmoreira/ff8967a92f417ac088c50c2832c42176 to your computer and use it in GitHub Desktop.
jQuery fix to allow Team Showcase Lightbox to work on Salient theme
jQuery(document).ready(function(){
jQuery( '[data-featherlight]' ).each( function(){
jQuery(this).attr('data-featherlight', jQuery(this).attr('href'))
.removeAttr("href");
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment