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.
Syntax
Section titled “Syntax”'file' | asset_urlReturns
Section titled “Returns”string
Example
Section titled “Example”{{ 'base.css' | asset_url }}/cdn/shop/t/1/assets/base.css?v=aaaaaaaaaaaaRelated
Section titled “Related”Compatibility
Section titled “Compatibility”Shopify: Same as Shopify.
Since theme platform 1.0.
Was this page helpful?

