Adding a javascript file for customising Canvas

1 reply · opened Aug 15, 2018

VVendioAug 15, 2018

Hello,

To Customise the Canvas template I want to add a new javascript file where I can put in some jQuery.
When I put <script src="/js/custom.js"></script> in the header, the jQuery does not work. But when I do this in the footer, it does, but that is not the right spot for my page to work.

How can I link to the custom.js file the right way?

Kind regards,
Geert-Jan Evers

SSemicolon WebSTAFFAug 21, 2018

Hello,

Thanks for your Patience!

To add a Custom JS File, always make sure that it is added just after the js/functions.js JS File Linking at the bottom of the page to ensure maximum compatibility. If you are still facing any further issues with this, there might be a jQuery Conflict on the Page. Please provide us with a Live URL so that we can check out the exact issue and provide you with a more accurate solution for this. Thanks for your Patience.

Meanwhile, do let us know if we can help you with anything else or if you find any further issues with Canvas.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard
Adding a javascript file for customising Canvas · Canvas Template Support