• I have tried every possibility to get this plugin to work but every time I click on an image it loads the image directly.

    I tried un-optimising the site just to see if that was an issue or if jQuery was not loaded but that is not the case.

    I use Twenty Seventeen as the theme and I have the JetPack image speed module enabled and WP Offload S3 installed.

    Please let me know what I need to do to get this to work.

    I await your immediate response.

    Thank you.

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author w3dev

    (@w3dev)

    It looks like you don’t have jQuery loading.

    Thread Starter Sébastien Dumont

    (@sebd86)

    But I do. It’s in the header. I checked. Fancybox runs in the footer.

    Plugin Author w3dev

    (@w3dev)

    Stange, I don’t see it in the source code. Which line of code is loading in jQuery on your URL?

    Thread Starter Sébastien Dumont

    (@sebd86)

    You should see ‘https://autoloadnextpost.com/wp-content/plugins/jquery-updater/js/jquery-3.3.1.min.js’ in the source code of the page. I have just made sure it is not combined with the rest of the compressed JS.

    Plugin Author w3dev

    (@w3dev)

    You’re going to need to disable some more stuff to find out what the issue is. Before the fancyBox plugin is even able to run its code, there is a javascript error in the console at line 152. There is something going on that is disabling jQuery before your footer scripts have a chance to run.

    Thread Starter Sébastien Dumont

    (@sebd86)

    Turns out it does not like it when the HTML is minified which is not good as I need my site to be fast. Could you put the inline JS for the plugin inside of another JS file?

    Or is there a way to filter the plugin so that I can add the inline code to my theme instead?

    Plugin Author w3dev

    (@w3dev)

    I think you’ll find there are a lot of plugins / scripts that end up not working correctly when you minify them, that’s why there are usually warnings about doing that when you enable a minification tool. I will look into moving the JS to a file in the future.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Does not work for single images’ is closed to new replies.