I have over 30 svg icons that I want to use in my Shopify theme. For readability, I donβt want to add it directly to the .liquid template, but to use include:
{% include 'some-icon' %}
and some-icon.liquid to have SVG code
The problem is that all these 30 files will have to be in my Snippets directory. With all the other files in Snippets, this will be a mess.
Is it possible to create an additional directory in Shopify and import it from there:
{% include 'MyIcons/some-icon' %}
Any other way to do this? thank you
source share