How to correctly link to a root file (like javascript file) #1751
-
Hi, I simply want to link a javascript file that works for any page of my website. So I've first uploaded the js file using file manager, to the root directory. But it doesn't work offline (preview locally), neither online. If I don't use the |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Move your javascript file to the /assets/js/.. folder of the theme. Use the following to reference the file: |
Beta Was this translation helpful? Give feedback.
-
Thanks :) I'm starting to understand that I'm going to have to overrides the theme. What annoys me because every time the theme is going to be updated, I will have to resume each of my changes. |
Beta Was this translation helpful? Give feedback.
Theme overrides safeguard from update overrides.
I don't know which server you use, but is there a possibillity of hosting them yourself on a separate directory, and linking to those files in the GUI?