Hi there,
Jack from OpenThinking here!
1. You need to upload all the files that were given to you into the assets folder
2. After that you need to call these files into your layout/theme.liquid file (at the end just before the </body> tag), with the following code:
{{ 'nameOfFile.js' | asset_url | script_tag }}
{{ 'nameOfFile2.js' | asset_url | script_tag }}
let me know if this works for your. If yes; accept my answer and give me thumbs up! Thank you.
Online store > Themes > Actions > Edit code
Hi OpenThiking,
Many thanks again for taking the time to respond to me, I really appreciated.
Unfortunately, I can't get this to work it looks like I am required to actually transfer a folder rather than single files. Do you know if folders can be added to the Assets folder?
The below are the instructions that I was given by the MLM company I work for
I understand but that is not possible. Shopify has a pre-defined directory structure and additional directories cannot be created.
You've to upload those files in the assets folder and include them from there inside your theme.liquid file. You've to adapt the code to work with Shopify.
The "script" that was sent to you isn't made for Shopify, perhaps it was developed for some other system such as WordPress or other self-hosted alternatives.
User | Count |
---|---|
26 | |
22 | |
16 | |
10 | |
8 |