• I set up a post using the Advanced Gallery block and enabling lightbox and all was fine. Then I switched to the theme OceanWP and the lightbox no longer works – I just get the bigger version of the image.

    I added the OceanWP Extra plugin which adds Theme Panel and went to Scripts and Styles to disable the Lightbox and still no luck.

    Thanks for looking into it.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Contributor Ben Ritner – Kadence WP

    (@britner)

    Can you post a link?

    Ben

    Thread Starter KarenN

    (@savvyk)

    It’s local. If you are quick, this might work. fd80b2fd.ngrok.io

    If that doesn’t work, I’ll try to get it set up where you can access it.

    • This reply was modified 6 years, 8 months ago by KarenN.
    Plugin Contributor Ben Ritner – Kadence WP

    (@britner)

    I tried there, the scripts that would load in the footer were not there.

    I tried on my own local testing with oceanWP and didn’t have any issue with the gallery and turning on the lightbox.

    Thread Starter KarenN

    (@savvyk)

    Did you disable the lightbox in OceanWP? It wasn’t working before or after I did that though.

    This is weird. I sure do appreciate your fast response.

    I’m not sure what to try next. I’m also having the problem with the client’s site on a development server. Since I can’t link to that, I spun up a quick demo on local.

    Plugin Contributor Ben Ritner – Kadence WP

    (@britner)

    I did not turn off anything in oceanwp

    Thread Starter KarenN

    (@savvyk)

    I turned the lightbox in Ocean WP back on and now I am getting a lightbox. (Bangs head on desk) BUT it doesn’t go to the next image. Just pops up the one image in a lightbox.

    Plugin Contributor Ben Ritner – Kadence WP

    (@britner)

    Looks like they are overriding the block lightbox, and from what you are saying, when you turn it off in their lightbox settings instead of turning off their own lightbox init they prevent magnific pop from even loading which prevents the block lightbox from loading.

    You should contact Ocean WP and ask if they have a way you can just prevent their js initiation of magnific pop from running instead of preventing magnific pop from being able to be loaded at all.

    Thread Starter KarenN

    (@savvyk)

    Makes sense. Just to clarify is Magnific lightbox what does the prev/next image? And the lightbox that is appearing must be another lightbox?

    Thanks so much. I appreciate your help. This plugin looks like what I need if I can just get it to work.

    Hmm, could I add the script needed in functions.php?

    • This reply was modified 6 years, 8 months ago by KarenN.
    Plugin Contributor Ben Ritner – Kadence WP

    (@britner)

    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.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Lightbox not working with OceanWP theme’ is closed to new replies.