javascript - Magnific Popup link format -


so.... problem. seemed magnific popup wouldn't work libraries added correctly , console didn't display errors. figured out removing tags in link. have html markup not working:

<a class="image-link" href="img/gallery1.jpg">    <img class="img-responsive" src="img/gallery1.jpg" alt="">   <span class="zoom"></span> </a> 

here's simple script lightbox:

<script type="text/javascript">    $(document).ready(function() {     $('.image-link').magnificpopup({type:'image'});   }); </script> 

but if remove span, lightbox triggers correctly. have span because icon hover effects in css. i'd make plugin work it. please me , don't assume much. don't know javascript/jquery programming.


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -