- Linking an external script file – effective on site level
- Embedding within header and/or footer of a specific page – effective on page level
- Adding within the content of a page – effective on element level
Linking an External Script File
Some kind of functions need a script file to be linked at site level. This is when you’ll need to link an external script file.
You’ll need to attach the .js file in object via Weebly Site Editor following these steps: “Design > Edit HTML/CSS > Assets”.
Hit on the + icon then select “Upload File(s)” and attach the script file.
Once file is uploaded, you’ll need to link the file at a website level always via the weebly Site Editor and following these steps: “Settings > SEO > Footer Code” section using the below code:
Embedding within header and/or footer of a specific page
In order to embed a script at an element level, you have to use “Embed Code” element to paste the script along with the HTML / CSS code.