Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hey, guys!
I have a quick question about Hydrogen Image Component.
https://shopify.dev/api/hydrogen/components/primitive/image
I'd love to know if there's a way to switch different two images based on a window width responsively with a Hydrogen Image Component (sort of an equivalent function with an srcSet or picture tag of normal HTML Images)?
// like this one below
<picture>
<source media="(min-width:650px)" srcset="img_pink_flowers.jpg">
<img src="img_orange_flowers.jpg" alt="Flowers" style="width:auto;">
</picture>
Thank you.
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024