Using the lazy-load plugin within my site to load some images into a Page. I am using the ![](/images/...) {.img-fluid}
to reference the image.
However the image does not show, only the text/title of the image.
If I remove the following block from lazy-load.php though the images do show…
$img_srset = $image->getAttribute("srcset");
$image->setAttribute("data-src", $img_src);
$image->setAttribute("data-srcset", $img_srset);
$image->removeAttribute("src");
$image->removeAttribute("srcset");
With the block in place the image src is being written as data-src and without it the src is written as src.
Obviously, I shouldn’t need to alter the underlying php, so How do I stop or change the src attribute from being written as data-src…?