Shopify themes, liquid, logos, and UX
Hello, guys! For some reason shopify reduces the image quality of my image banner, can someone help me, please?
My site: https://fddd3f.myshopify.com/
Password: asd321
Link to photo: https://postimg.cc/xJZwqZPS/6ddb048d
This is Noah from PageFly - Shopify Page Builder App
Please help me to follow the steps below to fix this issue
Step 1: Online Stores > Themes > More Actions > Edit code
Step 2: go to image-banner.liquid and replace the code here:
By this code:
<img
src="{{ section.settings.image | img_url: 'master' }}"
alt="{{ section.settings.image.alt | escape }}"
loading="lazy"
class="{{ image_class }}"
width="{{ section.settings.image.width }}"
height="{{ image_height }}"
>
And here:
By this code:
<img
src="{{ section.settings.image_2 | img_url: 'master' }}"
alt="{{ section.settings.image_2.alt | escape }}"
loading="lazy"
class="{{ image_class_2 }}"
width="{{ section.settings.image_2.width }}"
height="{{ image_height_2 }}"
>
Hope this can help you solve the issue
Best regards,
Noah | PageFly
Please let me know if it works by giving it a Like or marking it as a solution!
PageFly - #1 Page Builder for Shopify merchants.
All features are available from Free plan. Live Chat Support is available 24/7.
Hi! Thanks for your reply. I don't find these codes in my image-banner.liquid section
Can you help me by take a full screenshot in the image-banner file when you search for : {{ section.settings.image_2 please?
Please let me know if it works by giving it a Like or marking it as a solution!
PageFly - #1 Page Builder for Shopify merchants.
All features are available from Free plan. Live Chat Support is available 24/7.
I messaged you on private
This is the issue im facing
Hi, i have replied the private message, please help me check it
Please let me know if it works by giving it a Like or marking it as a solution!
PageFly - #1 Page Builder for Shopify merchants.
All features are available from Free plan. Live Chat Support is available 24/7.
Shopify by default reduce the quality with "srcset" attributed in all img. Add this to remove it in your theme.liquid (at the send of <head> html tag)
<script>
document.addEventListener("DOMContentLoaded", () => {
document.querySelectorAll("img").forEach(img => {
img.setAttribute("srcset", "");
});
});
</script>
Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025