Hi @marc_o, sorry for all the delayed responses on this thread, it seems some other members of our team had a tough time figuring out how to replicate your issue.
I’ve just tested this out myself by installing L&L and the Divi theme on a barebones WordPress site and I was able to replicate the issue you’re describing. The thing with themes though is that they affect the way the whole site is displayed, not just pages where you’re using the Divi builder or a Divi template. To confirm that Divi was the root of the issue here, I deactivated my Divi theme and switched back to the default Twenty Twenty-Three theme, and then srcset
in my L&L template worked as expected.
I’m not a developer so I might be wrong about this, but my hypothesis here is that Divi is doing something nonstandard with these responsive image attributes. Based on this blog post from 2019, it sounds like Divi explicitly added support for srcset
on images added through their builder instead of just piggybacking on the default WordPress functionality that seems to exist in standard themes.
Even though I’m pretty sure this is a Divi issue, I’ve still passed this information along to one of our devs in case we can identify what’s unique about the way Divi handles responsive image attributes. L&L can’t support all the unique ways that other themes and plugins differ from the “WordPress way” but maybe there’s something we can do to help, or at least give you some info so that you can pass that along to Divi support.
Again, I’m not a dev, so this is all my hypothesis, but I’ll keep you informed when our dev team has a chance to look into this to see if I can shed a bit more light on the situation.
Thanks for your patience and helpful responses!