Skip to content

asset_url

URL of a file in the theme’s assets/ folder.

The URL includes a version, so browsers cache it until the file changes.

'file' | asset_url

string

Liquid
{{ 'base.css' | asset_url }}
Output
/cdn/shop/t/1/assets/base.css?v=aaaaaaaaaaaa

Shopify: Same as Shopify.

Since theme platform 1.0.

Was this page helpful?