WordPress Responsive Image ( srcset ) not work properly

Question

I have a very strange problem

There are images with the correct size on the host and image sizes are properly recorded in WordPress

But I get the following html code output

<img width="300" height="200" src="https://site.site/wp-content/uploads/2020/04/Imagename.jpg" data-lazy-type="image" data-src="https://site.site/wp-content/uploads/2020/04/Imagename.jpg" class="attachment-us_300_200 size-us_300_200 wp-post-image lazy-loaded" alt="IMAGETITLE" srcset="" data-srcset="https://site.site/wp-content/uploads/2020/04/Imagename.jpg 400w, https://site.site/wp-content/uploads/2020/04/Imagename.jpg 600w, https://site.site/wp-content/uploads/2020/04/Imagename.jpg 300w, https://site.site/wp-content/uploads/2020/04/Imagename.jpg 900w" sizes="(max-width: 300px) 100vw, 300px" title="IMAGETITLE">

The size I requested was 300×200 pixels
but, the image is displayed in full size and the loading speed of the site is greatly reduced.

This problem occurred a week ago after a few plugin and theme updates

  • Disabled all plugins and theme > noting changed
  • Manual replacement wordpress files > noting changed
  • Change the PHP version > noting changed

Sorry for the bad English
Can anyone help me?

0
, , , Mahdi Jafarzadeh 3 years 2020-06-01T17:10:57-05:00 0 Answers 109 views 0

Leave an answer

Browse
Browse