Skip to main content

asset_url

string | asset_url
returns string

Returns the CDN URL for a file in the assets directory of a theme.

{{ 'cart.js' | asset_url }}

Output

//polinas-potent-potions.myshopify.com/cdn/shop/t/4/assets/cart.js?v=83971781268232213281663872410
Was this page helpful?