New Shopify Certification now available: Liquid Storefronts for Theme Developers

App: load CSS file from the assets folder

YvanHK
Shopify Partner
13 1 1

I'm creating an app (app-embed.liquid) where I want to have the CSS 'styles.css' in another folder:

Screenshot 2023-02-06 at 7.50.34 PM.png

 

From what I can read, we can achieve so for conditional app blocks but not sure it is working for my case:

Screenshot 2023-02-06 at 7.51.41 PM.png

I added the <link> above and the schema tag.

{% schema %}
  {
    "name": "",
    "target": "head",
    "stylesheet": "styles.css",
    "settings": []
  }
{% endschema %}

 

Do I need to have all CSS, assets, JS and liquid in one file or I can split?

Thanks for your help.

 

Replies 0 (0)