Hi,
I’m experiencing an issue where some images on my client’s website are not being replaced with their optimized versions generated by the Smush Pro plugin. Other images appear to be optimizing correctly, but a subset of them continue to serve the original, unoptimized files.
I believe this may be related to how Enfold handles images. I tried to deactivate all plugins except Woocommerce and Smush Pro to see if any other plugins might be the cause of this issue, but it doesn’t seem like it. There are missing srcsets as well, which leads me to believe the theme isn’t using the regular wp_get_attachment_image() function (loading images the WordPress way), which then doesn’t let WordPress apply image optimizations and other hooks that come from that function.
Could you advise on whether Enfold has any known conflicts with Smush Pro, or if there’s a recommended way to ensure all theme-rendered images are picked up by the plugin?
In the example link, you can look at image HTML. The first section’s image has been manually replaced with AVIF while the second and third section’s image still load PNGs. None of the images have responsive srcsets.
We look forward to your response,
Neven
Hey Citvej,
Thank you for the inquiry.
Where did you set the option to convert the images to AVIF?
The srcset should be automatically added to the images as long as Enfold > Performance > Responsive Images is enabled, which enables the default WordPress srcset feature. It’s possible that one of the plugins installed on the site is interfering with the default WordPress functionality.
Best regards,
Ismael
