Skip to content

Instantly share code, notes, and snippets.

@jbd91
Created September 16, 2019 16:20
Show Gist options
  • Save jbd91/4d1a6a523eb6752884f7d53135f323a9 to your computer and use it in GitHub Desktop.
Save jbd91/4d1a6a523eb6752884f7d53135f323a9 to your computer and use it in GitHub Desktop.
jQuery Zoom Repeater Field printing multiple images
// Specify array value so only the image for that row is printed. Also need to define URL as image field returns array of options.
jQuery(document).ready(function($){
$('.ti--modal-image').zoom({url: '<?php echo $ti_modal_image['0']['url']; ?>'});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment