Shopify themes, liquid, logos, and UX
Hello i have an issue with my slides and and image on my mobile version , indeed on my slide my pictures are low quality but on desktop they are perfect , i don't know why . I need help please 🙂
Hi @Sohayl67,
By default, Shopify compresses images to optimize website performance. To improve the image quality on your site, you can adjust the image size by adding a simple code change to your image tags.
To display the highest quality image, use the following code:
<img src="{{ product.featured_image | img_url: 'master' }}" alt="{{ product.title }}">
This will retrieve the highest resolution version of the product image for display on your site.
For more information, please refer to the Shopify documentation here:
Shopify Liquid Filters - img_url
I hope this helps! If it does, please like it and mark it as a solution!
If you need further assistance, feel free to reach out!
Regards,
Sweans
ok thanks for the help where do i paste this code ???,
Where do i need to paste this code ????
Hi @Sohayl67
This is Richard from PageFly - Shopify Page Builder App
Please add this code to your theme.liquid above the </head> to get this solved
Step 1: Online Stores > Themes > More Actions > Edit code
Step 2: click on theme.liquid and paste the code above the </head>
<script>
document.querySelectorAll("#MainContent img").forEach(img => {
img.removeAttribute("srcset");
});
</script>
Hope this can help you solve the issue
Best regards,
Richard | PageFly
Please let me know if it works by giving it a Like or marking it as a solution!
➜ Optimize your Shopify store with PageFly Page Builder (Free plan available)
All features are available from Free plan. Live Chat Support is available 24/7.
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025