I was thinking that because Storyteller is using the Magnific Popup, I could use it to create an additional popup. I guess it's not as easy as adding
as I'm getting this error:
Am I not able to use the existing javascript?
Code:
<a class="test-popup-link" href="path-to-image.jpg">Open popup</a>
<script src="/Merchant2/themes/storyteller/js/jquery.magnific-popup.min.js" defer></script>
<script>
$(document).ready(function() {
$('.test-popup-link').magnificPopup({
type: 'image'
// other options
});
});
</script>
as I'm getting this error:
Uncaught ReferenceError: $ is not defined
Am I not able to use the existing javascript?
Comment