dimsemenov / Magnific-Popup

Light and responsive lightbox script with focus on performance.
http://dimsemenov.com/plugins/magnific-popup/
MIT License
11.39k stars 3.48k forks source link

When using popup in Wordpress post not working When open the New tab? #982

Open muralitharanvellaisamy opened 7 years ago

muralitharanvellaisamy commented 7 years ago

popup in Wordpress Post. it show the Post URL(open the new tab) Not show the popup

ghost commented 7 years ago

Can you give me a link to the issue?

muralitharanvellaisamy commented 7 years ago

klearvuecabinetry - collections

ghost commented 7 years ago

When i click the images it loads the magnificPopup modal? or am i missing something?

muralitharanvellaisamy commented 7 years ago

When its Click loads but right click it not working it show the page

ghost commented 7 years ago

You must change the element so it is not an anchor tag anymore and then use a data-attribute to pass the href, like this:

<div class="simple-ajax-popup-align-top" data-href="http://klearvuecabinetry.com/kitchen-cabinet/oland-slab-melamine-white/">

I don't know your exact JS so please adopt the below to suite you


jQuery('.simple-ajax-popup-align-top').on('click', function (e) {
    jQuery.magnificPopup.open({
        items: {
            type: 'ajax',
            src: jQuery(this).data('href')
        }
    });

});