Adding JavaScript - XMPieLab/uStore-NG GitHub Wiki
There are several 3rd party tools that can be added to a website by including a JavaScript library and adding a snippet of code to every page in the site. These types of tools can provide additional functionality, for example to add tracking or reporting, a chat service, social media feeds, mapping, animation, and much more.
You can add these type of JavaScript libraries to your uStore NG Theme by using this process:
Process
- Set up your development environment as described here.
- Download the 3rd party JavaScript library and add it to the theme in this folder: /src/ustore-internal/static
- To add the library into the <head> tag of every page in the uStore Theme, edit this file: /src/public/index.html
- Test your code while in development mode by running the local webserver.
- Publish the new theme as described here.
Training video
For a detailed example, watch the Adding a chat service to your theme video on XMPie Campus.