liquid - Shopify having trouble adding an additional style sheet in older prestige theme
Solution:
I think there is a problem with your syntax (apostrophes). Also, ensure that application.css actually exists in the /assets directory
{{ 'application.css' | asset_url | stylesheet_tag }}
not:
{{ ‘application.css’ | asset_url | stylesheet_tag }}
Answer
Solution:
I figured out what was going on for some reason when I add the stylesheet tag in my local dev environment it does not carry over to theme code.
So when I added it directly in theme code editor it worked fine.
So I did it like this:
{{ 'application.css' | asset_url | stylesheet_tag }}
Source
Didn't find the answer?
Our community is visited by hundreds of Shopify development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.