I\'m trying to implement magnific popup on my website but for some reason my test image is not opening in popup mode. What could be the issue? Many thanks
&l
Problem in your code:
$(document).ready(function() {
$('.image-popup-vertical-fit').magnificPopup({
type: 'image',
closeOnContentClick: true,
mainClass: 'mfp-img-mobile',
image: {
verticalFit: true
}
});
Your problem, you have two opening script tags: });
The proper version of script:
$(document).ready(function() {
$('.image-popup-vertical-fit').magnificPopup({
type: 'image',
closeOnContentClick: true,
mainClass: 'mfp-img-mobile',
image: {
verticalFit: true
}
});
});