• Resolved DickRaney

    (@dickraney)


    I’m using Easy Fancybox with Nextgen Gallery. For some reason I get errors in the console:

    GET https://domain.com/wp-content/themes/mytheme/fancybox.png 404 (Not Found)
    GET https://domain.com/wp-content/themes/mytheme/fancybox-y.png 404 (Not Found)
    GET https://domain.com/wp-content/themes/mytheme/fancybox-x.png 404 (Not Found)

    Why is it looking in my theme folder?

    Also, I want the images on this page to open as a gallery with the next and previous buttons. I see in the source code that links have
    class="fancybox image"
    Is that the problem? How do I fix it?

    Thanks!!

    NOTE: since the website is live, I copied the missing image files to the theme folder to get rid of the error messages, but it still shouldn’t be looking for them there and it still doesn’t function as a gallery.

    • This topic was modified 5 years, 5 months ago by DickRaney.

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi, the plugin is not looking in your theme folder. These request must be coming from either your theme or another plugin…

    To open images in a gallery, you can set the option “Auto-gallery” to “All in one gallery” or “WordPress galleries only” depending on how you are inserting your images.

    Thread Starter DickRaney

    (@dickraney)

    Setting to All-in-one worked. Now showing as a gallery, but it IS looking for those 3 fancybox images in the theme folder.

    I see the requests are coming from a CSS file treated by Autoptimize. It looks like Autoptimize mistakenly replaces the relative plugin paths with full paths to the theme dir.

    Please exclude the Easy FancyBox stylesheets (and scripts) as they are already minified.

    Thread Starter DickRaney

    (@dickraney)

    Okay, I turned off Autoptimize and I still see the same thing.

    for future debugging-reference; you can disable Autoptimize on a per-request basis by adding ?ao_noptimize=1 to the URL.

    hope this helps,
    frank (ao dev)

    Hi, the requests are coming from the theme stylesheet itself. See https://beckymorris.com/wp-content/themes/bmorris-2/style.css near the end where it starts with /* ----------------------------------------------------------------------------------------- FANCYBOX FOR NEXTGEN GALLERY */ … so Autoptimize is correctly translating that to the theme’s absolute path ??

    Best to remove those style rules completely.

    Thread Starter DickRaney

    (@dickraney)

    Oh my. So sorry to bother you with this. But thanks!!!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘broken links to fancybox image assets’ is closed to new replies.