Created
October 13, 2022 08:43
-
-
Save diviengine/baa5295942a9d582bc63eb85d0093ce1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
jQuery(document).on('divi_filter_completed', function(){ | |
$et_post_gallery = jQuery( '.et_post_gallery' ); | |
$et_post_gallery.each(function() { | |
jQuery(this).magnificPopup( { | |
delegate: '.et_pb_gallery_image a', | |
type: 'image', | |
removalDelay: 500, | |
gallery: { | |
enabled: true, | |
navigateByImgClick: true | |
}, | |
mainClass: 'mfp-fade', | |
zoom: { | |
enabled: ! et_pb_custom.is_builder_plugin_used, | |
duration: 500, | |
opener: function(element) { | |
return element.find('img'); | |
} | |
} | |
} ); | |
}); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment