This tutorial guides you on how to link CSS and JS files in Shopify blogs.
First of all, open template.liquid file and navigate to the inner head tag.
To link a CSS file, add this code:
<link
rel
="stylesheet"
href
="
{{'
theme.css'|
asset_url
}}" type="text/
css
")">
And add the following code to link JS file:
<script
src
="
{{'
theme.js'|
asset_url
}}"defer="defer"></script>
Now you are done. Run your app to test this code.
Conclusion
This short tutorial helps you to link CSS and JS files in your Shopify website. Check more such tutorials on our blog page. Happy Coding!!!
If you are looking for a software firm to create your business website or mobile app, your search ends here. We build affordable and robust software solutions for businesses to digitally thrive on. Contact us to get a quote. You can mail us on [email protected] or WhatsApp us on +91 95 37 84 38 39.
4 Comments
zoritoler imol
Thank you for every other informative site. Where else may just I get that type of information written in such an ideal manner? I have a mission that I'm just now running on, and I've been on the look out for such information.
gateio
Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?
gate io nedir
I am an investor of gate io, I have consulted a lot of information, I hope to upgrade my investment strategy with a new model. Your article creation ideas have given me a lot of inspiration, but I still have some doubts. I wonder if you can help me? Thanks.
gate io giriş
After reading your article, it reminded me of some things about gate io that I studied before. The content is similar to yours, but your thinking is very special, which gave me a different idea. Thank you. But I still have some questions I want to ask you, I will always pay attention. Thanks.