This topic has 9 replies, 2 voices, and was last updated 6 years, 8 months ago ago by Rose Tyler
Hello,
when I add a gallery, this gallery is shown within the magnific popup. But I want to use another popup plugin, so I need to disable magnific popup for galleries. How can I do this?
Many thanks in advance!
Hello,
Do you mean gallery on the single product page?
Regards
On post pages. I have commented out the following code in etheme.js and that worked, but I dont know if thats a good way or if there is a better solution I could implement in my childtheme:
// **********************************************************************//
// ! Images lightbox
// **********************************************************************//
$("a[rel^='lightboxGall']").magnificPopup({
type:'image',
gallery:{
enabled:true
}
});
$('.images-popups-gallery').each(function() { // the containers for all your galleries
$(this).magnificPopup({
delegate: "a[data-rel^='gallery']", // the selector for gallery item
type: 'image',
gallery: {
enabled:true
}
});
});
$("a[rel='lightbox'], a[rel='pphoto']").magnificPopup({
type:'image',
closeBtnInside: true,
preloader: false,
midClick: true,
removalDelay: 300,
callbacks: {
beforeOpen: function() {
this.st.mainClass = 'my-mfp-slide-bottom effect-delay2';
}
}
});
Unfortunately, this can be done only via parent theme.
Regards
Ok, thank you very much for your soon reply. Really appreciate your great support!
Ah just one more general question: I saw that Royal theme is on sale for some weeks. Is this just a usual sale or does this mean that the theme will no longer be developed??
You’re welcome!
This is simply a spring sale.
Feel free to ask if you have any questions 🙂
Regards
Ok great, please never ever stop with developing Royal 😀
Ok 🙂 Have a nice day.
Regards
You must be logged in to reply to this topic.Log in/Sign up