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.
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024