Jump to content
Sign in to follow this  

Getting a Zoom to work with Dynamic Images

Recommended Posts

This was pretty frustrating to figure out so I'll post it here in the odd chance anybody ever has this problem.

Problem: Using a 3rd party image zoom script on an image, problem, already using dynamic images for thumbnails.

Issue: The zoom works fine on the first image, until you select a new thumbnail, the zoom works, but it zooms in on the wrong image.

And the code for the magnifier is minified of course, so I can't really read the code to fix it.

The solution is to :

In the Image Update Function, after you swap the image, you have to destroy the magnifier object and recreate it.

Figuring this out was yet another chapter in the "This shouldn't have taken 2 hours" fun times adventure book.

Edit: I realize this is probably one of these "You have no idea what I'm talking about until it occurs" situations.

Share this post

Link to post
Share on other sites

SEOPress WordPress SEO plugin

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.