Magento

Media images not showing in custom module

Pinterest LinkedIn Tumblr

Example:

After phasing this I searched multiple solution but finally this is working in my project.

I saw the image has data-amsrc attribute. it is added by amasty “Google Page Speed Optimizer” module. There is config in admin to ignore images contain certain classes.

Solution 1) in my case, this module also added style display:block to all images in my site. I change config Lazy Load Script => Native JavaScript Lazy Script fixed both issues

if solution 1 not working then you can try solution 2nd.

Solution 2) Change config Use Lazy Loading Images => No

Write A Comment