Problem with JS Plugins

3 replies · opened Jun 10, 2020

NnaliagaJun 10, 2020

Thank you for the version 6. It looks great.

My problem is with the js plugins. From my page I am calling the jquery.js and js/functions.js like that

<script src="../../_lib/theme/js/jquery.js"></script>
<script src="../../_lib/theme/js/functions.js"></script>

as I used to in version 5, but it's not working in version 6...I read in the forum about using "window.scwJsPath = 'your-custom-js-folder-location';", but I am not sure how to make it work. I looked in the documentation but I couldn't find more information. Do you have a clear example?

Can you please let me know, where should I put this "window.scwJsPath = 'your-custom-js-folder-location';"?

Should i put it between <script </script> brackets?

I leave this like that or i deleted?

<script src="../../_lib/theme/js/jquery.js"></script>
<script src="../../_lib/theme/js/functions.js"></script>

I have tried different things but it does not work for me.

Thank you in advance

SSemicolon WebSTAFFJun 10, 2020

Hello,

Apologies about the Inconveniences caused!

You can consider using the following code:


window.scwJsPath = &apos;../../_lib/theme/js&apos;;

This will definitely work fine. We will be adding more comprehensive documentation and the related possibilities for this by tonight. Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

NnaliagaJun 12, 2020

Great! thank you for the fast and clear information.

SSemicolon WebSTAFFJun 13, 2020

Hello,

Very Happy to Help!

Let us know if we can help you with anything else.

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