Hi @animeroom
I was wondering if it was possible to create a folder within the assets folder like an “image folder”. just so I can place those assets in that folder and reference them accordingly.
The folder structure is predescribed for shopify themes in the online-sale channel.
It works fine, but my concern is more to do with scalability and the issue of the code editor just looking messy.> > …> > If there is maybe a better or “correct” way to store images to be used across the site please let me know! It would be greatly appreciated.
To scale and maintain a theme you need an offsite build process that would merge any children folders content into the required parent folder.
So in a local dev environment you could have an /assets/images or /assets/video or /assets/media etc.
There are many open source theme build process to look at, though typically this is just done to help manage javascript.
For scalability and longterm maintenance don’t use the admin’s built in code editor, shopify is not a company that makes code editors.
Use themekit, or the shopify-cli to connect a theme to the file system of a development environment to use an actual code editor.
There is no single “correct” pure way of asset handling.
Wrong questions get wrong answers.
It depends on your needs and specifics.
Such as figuring out if mp4 or webm would be more efficient than gifs.
Or which assets should exist outside of a themes asset folder and instead be placed in the files part of the admin.
Or attaching media to a resource like a product or collection,etc.
Or using an external CDN.
Or putting all images into a single spritesheet.
etc etc etc.