Tagged: featured image size
I want to find a way to change the Featured Image size for mobile. I want to display a 480×268 image on mobile and a 1200×670 image on desktop. Can you help me out? Thanks!
I’m trying out this code, but I think it changes both the mobile and desktop versions. At least, that’s what the page speed is indicating.
Hi,
Thank you for the inquiry.
The smaller version of the image should automatically display on mobile view because WordPress automatically sets the srcset attribute. This seems to be the case when we check the site using mobile emulation. It shows the smaller version (480×268px). Please refer to the screenshot in the private field.
Best regards,
Ismael