-
AuthorPosts
-
May 19, 2023 at 12:32 pm #1407936
Jason
GuestHi guys,
I have set my woocommerce product image to 705px in Customizer to take advantage of the Masonary image size (705x705px).
Unfortunately Enfold is still setting sizes to 450px in the responsive part of the
tag, eg:
sizes=”(max-width: 450px) 100vw, 450px”
This is making the main product image very blurry as it is using the 450px version.
How to fix this?
Cheers, Jason
May 24, 2023 at 3:30 am #1408358Hi Jason,
Thanks for contacting us!
Please go to Enfold > Performance, then disable Responsive Images
Hope it helps.Best regards,
NikkoMay 24, 2023 at 5:36 am #1408376Hi Nikko,
What if I want responsive images but want Enfold to use the correct one?
Cheers,
JasonMay 24, 2023 at 5:37 am #1408377Tag with email reply :)
May 24, 2023 at 5:53 am #1408381Hi Jason,
Can you give us a link? so we can inspect the page.
Best regards,
NikkoMay 24, 2023 at 7:15 am #1408385Link in private content below.
May 24, 2023 at 7:16 am #1408386Another example
May 24, 2023 at 5:07 pm #1408456Hi Jason,
Thanks for giving the links, I tried to check both but the 1st link seems to be blurry in all sizes (I have included a link in private content).
I also inspected it and images used are not the small ones and it’s not stretched as well.
As for sizes=”(max-width: 450px) 100vw, 450px” it simply means when the width is 450px or lower (which is applicable to mobile phones in portrait mode), make the size of the image 100vw with fallback of 450px which is basically 100% width of the screen.
You can verify it in https://css-tricks.com/a-guide-to-the-responsive-images-syntax-in-html/#using-srcsetUsing srcset with width (w) descriptors like this means that it will need to be paired with the sizes attribute so that the browser will know how large of a space the image will be displaying in. Without this information, browsers can’t make smart choices.
The 2nd link you gave does not look blurry on my end.
Best regards,
Nikko -
AuthorPosts
- You must be logged in to reply to this topic.
