hi @infatum
I had a look at your page, and there is another lightbox loading which is either part of your theme, or from another plugin. You can either try to disable that other lightbox if there are settings to disable it.
If not, then you will have to select no lightbox when editing the FooGallery.
I figured from Inspect element that this code
`<div class=”mfp-container mfp-image-holder mfp-s-ready”>
and mfp in particular has to do with magnificPopup. I don’t have a slightest hint where that comes from since I’ve got only a handful of plugins in my plugin section.
I can’t find a tweak for OceanWP settings to disable it. Not in the addons.
I’ve found similar issue on this thread
There is a comment,
Ben Ritner – Kadence WP (@britner)
1 year, 1 month ago
Just to clarify is Magnific lightbox what does the prev/next image?
No, it’s the lightbox js plugin. see here: https://dimsemenov.com/plugins/magnific-popup/
How the plugin is initiated determines if it’s going to open as a gallery or not, my guess is that OceanWP is just adding the lightbox to all images and it doesn’t have code to tell that the Kadence Gallery is a Gallery. Maybe they will add that?
Hmm, could I add the script needed in functions.php?
Best to talk with OceanWP about the best method.
Can someone hint how to disable OceanWP lightbox in the settings, without modifying theme files?
-
This reply was modified 5 years, 6 months ago by
infatum.
-
This reply was modified 5 years, 6 months ago by
infatum.
-
This reply was modified 5 years, 6 months ago by
infatum.
I found the following which might help:
https://wordpress.org/support/topic/double-lightboxes-when-used-with-elementor/
Hello, two solutions:
1. Via Theme Panel > Scripts & Styles, disable the lightbox script.
2. If the first solution doesn’t work for you, add this code in the functions.php of your child theme: http://docs.oceanwp.org/article/464-disable-the-lightbox-scripts
Thanks a lot. The 1st solution worked. Didn’t know this problem is 2y and 9 months old. I didn’t even know one could disable features like that. OceanWP is great in this respect.