Use Site Template

Load JavaScript via the template used

Many templates allow custom JavaScript and custom CSS to be included in one way or another.

Directly in the template configuration

Sometimes there are special parameters for “custom code” directly in the template configuration. You can access this via System » Site Template Styles.

You can find this option with these templates, for example

  • the UIkit templates from YOOtheme and
  • the helix templates.

The right name in the right place

Sometimes there is the possibility to store JavaScript and CSS files with the right name in the right place.

For example with the Joomla Cassiopeia template

A file user.js
under the directory media/templates/site/cassiopeia/js.

A file user.css
under the directory media/templates/site/cassiopeia/css.