Remove srcset from images

We are trying to remove the srcset tag from images due to it not working correctly with WegLot. We tried finding the option described here: Disable Responsive Image Resize

But it seems to be removed.

1 Like

Hi, did you find a way to remove srcset ? I’ve been trying too for the same reasons, any tip would help :slight_smile:

Hi there !

I found two ways to do so :

  1. Create a class for the element you want to translate and add some JS code to disable it manually :

for (var i = 0; i < document.getElementsByClassName("translate").length; i++) { document.getElementsByClassName("translate")[i].srcset = "" }

  1. Just disable responsiveness by clicking on the image in your editor and do the shortcut : crtl + shift + O, and then clicking the checkbox that’s revealed in the image settings panel.