Disable Magnific Popup - by Royalty - on WordPress WooCommerce support

This topic has 9 replies, 2 voices, and was last updated 6 years, 8 months ago ago by Rose Tyler

  • Avatar: Royalty
    Royalty
    Participant
    March 22, 2018 at 16:33

    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!

    8 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    March 22, 2018 at 16:39

    Hello,

    Do you mean gallery on the single product page?

    Regards

    Avatar: Royalty
    Royalty
    Participant
    March 22, 2018 at 16:46

    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';
                }
            }
        });
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    March 22, 2018 at 16:51

    Unfortunately, this can be done only via parent theme.

    Regards

    Avatar: Royalty
    Royalty
    Participant
    March 22, 2018 at 16:55

    Ok, thank you very much for your soon reply. Really appreciate your great support!

    Avatar: Royalty
    Royalty
    Participant
    March 22, 2018 at 16:56

    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??

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    March 22, 2018 at 17:03

    You’re welcome!
    This is simply a spring sale.
    Feel free to ask if you have any questions 🙂

    Regards

    Avatar: Royalty
    Royalty
    Participant
    March 22, 2018 at 17:05

    Ok great, please never ever stop with developing Royal 😀

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    March 22, 2018 at 17:06

    Ok 🙂 Have a nice day.

    Regards

  • Viewing 9 results - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.Log in/Sign up

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.