Stylesheet tag

From Shopify Wiki

Jump to: navigation, search

stylesheet_tag(url)

This filter takes a url with a .css file and puts a link tag around it. You will want to use this in your html's header for all your stylesheet files.

Example:

<code>
{{ 'shop.css' | asset_url | stylesheet_tag }}
</code>

Results in:

<link href="/files/shops/random_number/assets/shop.css" rel="stylesheet" type="text/css" media="all" />

Personal tools