stefanledin / responsify-wp

The WordPress plugin that cares about responsive images.
http://responsifywp.com
GNU General Public License v2.0
52 stars 8 forks source link

Odd Issue with Enfold Theme #38

Open garyvoth opened 6 years ago

garyvoth commented 6 years ago

Hi Stefan. Thank you for this plug-in. I am using it primarily to enable automatic Retina support on a site I'm developing using the Enfold theme by Kriesi, and I'm experiencing an odd issue that I am hoping you can give me your thoughts on.

Enfold does not seem to work with responsive images or have Retina support across the board. However, at least one content element, the 'Partner Logo Grid' appears to do so. The odd behavior I'm experiencing is that when ResponsifyWP is enabled on the site, the Retina support on this element is lost, though it works on other elements on the site. Your plug-in appears to be rewriting the code as expected, but for some reason is not picking up the larger Retina image size. If I suppress the plug-in for PNG images (which is used for these logos), then the code appears to be rewritten using a single image without srcset. However, if I disable your plug-in altogether, then the element magically gains responsive image and Retina support with srscet--presumably through code built into the theme itself.

I'm not sure how to go about addressing this. I'd need a way to completely disable your plug-in for this content element or page, while keeping it active for other areas of the site. Alternatively, I'd need to figure out why your code is not picking up the Retina image.

Any thoughts? Thanks in advance.