Posted On:

Posted In:

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.

And add the following code to link JS file:

<linkrel="stylesheet" href="{{'theme.css'|asset_url}}" type="text/css")">

And add the following code to link JS file:

<scriptsrc="{{'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. 

Latest Posts

WordPress Security Shield: The Ultimate 2024 Hack Prevention Guide

March 19, 2024

As the most used content management system (CMS), WordPress security shield is crucial. Creating a robust security system for your WordPress websites helps protect sensitive financial details and user information. Therefore, this ultimate 2024 hack…

Block Editor vs Divi vs Elementor: Choosing Best WordPress Builder

March 13, 2024

A few years back website creation demanded a lot of technical knowledge and proficiency in HTML, CSS, and JavaScript. The scenario has changed, building a user-friendly website with no code is possible. Today, a variety…

Leave a Reply

Your email address will not be published. Required fields are marked *