Applying a css class to an img tag, not it's container

Hello,

I need to add a class (.skip-lazy) to some images I do not want lazy-loaded. Problem is, with the Photo settings editor I can apply said class to the container of the image but not the image itself. Since I don’t have control on the .skip-lazy selector I have to be able to apply the class directly on the image tag.

I cannot find a way to do this with beaver builder, but maybe one of you does ?

Has anyone an idea on how to solve this problem ?

Currently there isnt a way unless you modify the photo module. Ive opened an internal issue with a patch to add a filter. So keep an eye on the changelogs!

1 Like