Dispatch
All things Shopify from the desk of Ketan Mistry, the creator of Taillour.
January 14, 2025
How to calculate the height of an image
When you're building theme sections in Shopify, it's common to allow clients to upload images using the image_picker
input, and it's standard to display these images at particular sizes on the storefront. Here's a method I use to get the true height of the resized image.
January 11, 2025
Removing null values from an array in Shopify Liquid
Here's a little trick I learned for removing null or empty values from an array in Shopify's liquid. By using the compact
option like below, we'll get a nice filtered array back.