Javascript

New Member
1 0 0

My friends,How to import resource bundles from JQ and bootstrap?

0 Likes
Highlighted
Shopify Partner
942 96 150

You have a couple of options.

1. reference them from an external server - just add a regular HTML script tag to the <head> element under theme.liquid

2. upload all resources to Shopify assets folder under Shopify Admin > Themes > Code Editor and then reference them through special filters like that (also under <head> element in theme.liquid)

{{ 'your-script.js'  | asset_url | script_tag     }}
{{ 'your-styles.css' | asset_url | stylesheet_tag }}
Sergiu Svinarciuc | CTO @ visely.io
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!
- To learn more about the awesome stuff we do head over to visely.io or our blog
0 Likes