Skip to content

Instantly share code, notes, and snippets.

@benfoster
Created January 19, 2016 11:41
Show Gist options
  • Save benfoster/b9e7005db367facb974c to your computer and use it in GitHub Desktop.
Save benfoster/b9e7005db367facb974c to your computer and use it in GitHub Desktop.
Disable lightbox on Calico spotlight layout
<script>
$('.fab-portfolio-details .project-media li a')
.css('cursor', 'default')
.on('click', function() {
return false;
});
var dtl = $('.fab-portfolio-details .project-media');
if (dtl.length) {
$.magnificPopup.defaults.disableOn = function() { return false; }
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment