• Resolved tommasz

    (@tommasz)


    I switched from the 2017 theme to MintWP Pro theme (WP 5.1.1) and now my SmugMug gallery no longer displays. I’m using the Photonic_gallery tag so there’s no issue with Gutenberg (I’m using the Classic Editor anyway). This happens across Firefox, Chrome, and Safari on Mac Mojave (10.14). It does the same thing with Flickr but I have an alternative for that in the meantime. Any ideas? What other information do you need?

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Sayontan Sinha

    (@sayontan)

    This looks like a pretty bad problem with your theme – it seems to be playing havoc with jQuery!

    If you take a look at the JavaScript console when your site loads up, you see a bunch of errors from different plugins:

    All of these are complaining that the plugins cannot find jQuery (none of these errors is from Photonic). This is happening because your theme seems to be doing two things:

    1. It is using a non-bundled version of jQuery from https://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js. WordPress theme development guidelines very strongly recommend against this.
    2. Additionally it seems to be de-registering the jQuery handle, or changing the order of when this is invoked. This is wrong at multiple levels, as it will prevent plugins from using jQuery the right way.

    As a result of the second point above Photonic’s JS scripts are not even pulled into your content (they rely on jQuery, and not finding jQuery they don’t get included at all). Even if the scripts were included, point #1 from the above would kick into action and prevent your other plugins from working.

    To illustrate that this is not a Photonic issue, on the page where you have Flickr (for which you switched to a different plugin), if you click on a photo it will not open a lightbox – it will directly open a page on Flickr, but it should open a Colorbox lightbox if things are working correctly.

    Now, in very rare cases this problem might be caused by a different plugin instead of a theme, so it might help to check if you recently activated another plugin that messes up jQuery inclusion.

    Thread Starter tommasz

    (@tommasz)

    Whoa. Thanks for the quick reply. I switched themes and the problem persists, looks like I have to try and find the misbehaving plugin.

    Thread Starter tommasz

    (@tommasz)

    It was a plugin, an old one I had called Lightview Plus. It was leftover from an older iteration of the site. Perhaps that was why it had its own version of jQuery. Thanks!

    Plugin Author Sayontan Sinha

    (@sayontan)

    Great … marking this resolved.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Doesn’t work with the MintWP Pro theme’ is closed to new replies.