[Plugin: WP Retina 2x] Bug when using Autofocus Pro theme
-
I was very very excited to see your plugin. One of my sites is just to highlight my photography and having retina optimized images was something I really want. I activated v0.4 of WP Retina 2x on my site using WordPress 3.4.2 and the AutoFocus Pro theme.
It works great, but there is one problem. I’m not sure if it’s a bug in WP Retina 2x, retina.js or AutoFocus Pro. I tried to debug it a bit but I think something odd is happening in the Javascript.
The problem is that on blog posts that have multiple images, and use a gallery slider, after WP Retina 2x is installed any image beyond the very first image with a retina optimized size gets an image of height and width 0.
Okay, here is an example of it working great on a post with a single image. This is awesome:
https://photog.thingelstad.com/curves-and-peak/
That does exactly what it should do.
Now, on this next one, you’ll notice 3 images in a slider. The first image has a retina optimized version and it loads right. The 2nd image does not have a retina optimized version, and it loads right. The 3rd image does have a retina optimized version and it is blank. Inspecting the HTML shows the problem.
https://photog.thingelstad.com/skogafoss/
The HTML for the 3rd image is
<img width="0" height="0" src="https://photog.thingelstad.com/wp-content/photog_thing/uploads/2012/09/[email protected]" class="attachment-full-post-thumbnail" alt="20120904-143502-0001" title="20120904-143502-0001">
Since it doesn’t happen on the 2nd image, it seems like something is happening in retina.js when it successfully finds a @2x image for the 3rd one and swaps it out. I tried replacing the js/retina.js in WP Retina 2x with the most recent retina.js and had the same behavior.
Thanks for looking at this. I’m hopeful this is something minor and I can retina optimize all my images.
- The topic ‘[Plugin: WP Retina 2x] Bug when using Autofocus Pro theme’ is closed to new replies.