Site logo

Archived topic

Blog page not showing optimized images on mobile.

5 replies · Started by Jay on April 22, 2021

Viewing posts 1–6 of 6

Hello,

I'm noticing on the blog page that when the site is loaded on mobile, the images are not following the setting on the theme customize section. On desktop it works fine. See link for details.

We have the "medium" image size set to 479 x 676. In the theme customization section we have the blog set to display the "medium" sized images and on desktop it works. You can see in the code, the images with a width of 479 pixels are being served on the desktop. For some reason on mobile it does not adhere to the settings in the theme customization section. On mobile instead of serving the "medium" image it is pulling in the original sized image.

How can I get this to display the same image on desktop and mobile, the medium sized image and not have it revert to the original, full size on mobile. Is there a setting for this somewhere that I missed? Thanks in advance.

Image Here

Hi there,

It's hard to tell what's going on without seeing the site. My guess is that WordPress is using srcset to use a different image based on screen size, however it shouldn't be serving the full size. Can you share a link to the page?

Hey Tom, thanks for the response, I did not get a notification that you responded, maybe I did not mark it. Sorry for the late reply. Link sent, let me know if you are able to find anything. Thank you.

Hi there,

I am see on some images ( not all ) larger images being loaded in the src-set that should not be there if you have selected the medium attachment option in the Customizer. Theres a lazy loading script that is running against them - which may be interfering with the HTML. Could this be temporarily disabled to see if that is conflicting ?

Thanks David, that is a server mod to convert the images to WebP format. It may do some lazy loading as well, I'll have to review the docs and see if that is the issue. I'll test that out and follow up as needed. Man, you guys are the best with support, thank you for that!

OK - let us know :) Glad we can be of help

This archived topic is closed to new replies.