May 11, 2024 at 10:52 pm
#10044843
Keymaster
Hello, sorry about that, what I actually said was that the overlay class on Porto is not ready to work in IMG tags directly, because it was created to be used on DIVS/Sections, using css :after – so you would have to add a DIV in the IMG:
<div class="overlay overlay-color-quaternary overlay-show overlay-op-8"><img src="https://placehold.co/600x400" alt="" srcset="https://placehold.co/1200x400 1200w" sizes="100vw"></div>
The :after will not work in the IMGs, another wrapper element is required.
Hope that helps 🙂