I'm seeing an error when I try to add the CSS. How to fix it?

Our CSS code is built to work with a stylesheet that ends in .css, for example 'style.css'.

Some themes use a different extension for their stylesheet, which has an extra 's', for example style.scss.  This can sometimes cause an error.  It's a simple fix:

1. Create a separate file called style.css.liquid (Go to Edit HTML/CSS > Assets on the left > Create new asset > name it style.css).
2. Place the redirect's CSS code in that file, instead of the other one. 
3. Lastly, inside theme.liquid, before </head>, add this, so that your theme loads the new CSS you just created:
  {{ 'style.css' | asset_url | stylesheet_tag }}


That's all to it.

Have more questions? Submit a request


Please sign in to leave a comment.
Powered by Zendesk