Documentation:UBC Content Management System/How to/How do I add JavaScript files on each page of my site?
UBC CMS Codex | |
---|---|
Welcome to the support documentation for the UBC CMS Service. | |
Contents | |
UBC Collab Theme | |
UBC Collab Theme Overview | |
Adding JavaScript code to your site is simple if you are using the CLF Advanced theme.
Sample code: <script type="text/javascript" src="http://html5.kaltura.org/js"></script>
Steps
Follow these steps to add your JavaScript code:
- Login to your site
- Go to Dashboard -> Appearance -> Theme Options
- Select the Display Options tab and scroll down to Footer Scripts
- Paste the link to your JavaScript code or simply paste all your JavaScript code directly into the text field
- Test to see if the JavaScript does what it is supposed to
Troubleshooting
Open up Firebug and see if there are any errors on the page.