@2x images only load in debug mode
-
Howdy!
I have installed and configured the plugin and everything is working fine from within WordPress (all my @2x images are being generated perfectly).
Alas, I am simply unable to get the @2x images to load without enabling debug mode, which of course loads the @2x on every device. When I use debug mode, every device gets the @2x images, when I untick it every device gets the normal size version. The detection to work out whether to server the normal or @2x versions doesn’t appear to be working.
I am using the HTML Rewrite method as this best suits my needs. Originally I couldn’t get the @2x images to load at all but that’s because I didn’t have wp_head() in my theme. Is there any other common WordPress theme functions required by the plugin?
I did try using the Twenty Thirteen theme and disabling other plugins I’ve installed, but to no avail. I am using the Advanced Custom Fields plugin to upload the images – and wp_get_attachment_image_src from within the theme to output the images.
Any suggestions? I feel I’m close – but can’t quite figure out how to finally get this working!
The topic ‘@2x images only load in debug mode’ is closed to new replies.