Viewing 7 replies - 1 through 7 (of 7 total)
  • You need to disable whatever lightbox plugin you are using.

    Kadence Themes

    Thread Starter 81701580

    (@81701580-1)

    Thank!

    I too have this issue. However, rather than disable my own lightbox I wish to disable the Magnific Popup that comes with Virtue because my client requires a different lightbox with a download link for his galleries. Please help me out! Thanks.

    hannah

    (@hannahritner)

    Hey sara, try adding this to a text widget in your footer:

    <script type="text/javascript">
    jQuery(document).ready(function ($) {var magnificPopupEnabled = false;$.extend(true, $.magnificPopup.defaults, {disableOn: function() {return false;}});});
    </script>

    Hope that helps!
    Hannah

    Thanks, hannah! I may try this if my fix doesn’t work out. Does your code actually prevent the MP js from loading at all?

    I don’t know much of anything about javascript, but I managed to delete the offending code from my main.js file and saved everything in my child theme files. I’m hoping that’s the correct way to do that to avoid updates overwriting it. However I may play with it some more since I would think the main javascript file of the parent theme would NEED to be updated…

    @sara,
    I recommend you use the script hannah posted. Else you would need to deregister the parent js file and register the child theme one if you want to change anything in the main js file.

    Kadence Themes

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Disable one popup in gallery’ is closed to new replies.