Documentation:UBC Content Management System/How to/How do I add JavaScript files on each page of my site?

From UBC Wiki
Jump to: navigation, search
UBC CMS
Codex
Welcome to the support documentation for the
UBC CMS Service.
Contents

UBC Content Management System

UBC Collab Theme

UBC Collab Theme Overview
Theme Options Index
CLF Options
Layout Options
Frontpage
Navigation
Display Options
SEO
Export
Import
Global Theme Options

Dashboard Overview
Pages and Posts
Adding Users

Menus
Widgets
Plugins
Forms
Shortcodes
RSS Feeds
Going Live

Complete Topic Index
PDF Wiki Book Version

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:

  1. Login to your site
  2. Go to Dashboard -> Appearance -> Theme Options
  3. Select the Display Options tab and scroll down to Footer Scripts
  4. Paste the link to your JavaScript code or simply paste all your JavaScript code directly into the text field
  5. 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.

See Also

Adding Custom CSS