Joomla Installation

  1. Download Add Custom Javascript and unzip it.
  2. In the Joomla control panel select: Extensions > Install/Uninstall.
  3. In the Upload Package File section click Choose File and locate the "add-custom-javascript-1.1.0.zip" file.
  4. Then click Upload & Install to upload the file and complete the installation.

Configuration

In order to configure Add Custom Javascript go to the Joomla control panel and select: Extensions > Plugin Manager for the plugin version or Extensions > Module Manager for the module version. Locate "System - Add Custom Javascript" in the list and click it. You can see the Parameters of the extension as below:

Joomla Parameters

Parameters

The Add Custom Javascript extension has the following parameters:

  • Javascript File 1 Path: The relative path, starting from the Joomla installation folder, to your custom Javascript file. Example: templates/my-template/js/custom.js
  • Load File 1 In: Defines where the first custom Javascript file will be loaded. Front-end is the normal website. Back-end is the Joomla administration.
  • Javascript File 2 Path: The relative path, starting from the Joomla installation folder, to your custom Javascript file. Example: templates/my-template/js/custom.js
  • Load File 2 In: Defines where the first custom Javascript file will be loaded. Front-end is the normal website. Back-end is the Joomla administration.
  • Javascript File 2 Path: The relative path, starting from the Joomla installation folder, to your custom Javascript file. Example: templates/my-template/js/custom.js
  • Load File 2 In: Defines where the first custom Javascript file will be loaded. Front-end is the normal website. Back-end is the Joomla administration.
  • Remove Comments: Remove the comments from the Javascript file.
  • Minimize: Minimize the code of the Javascript file.

Uninstall from Joomla

  1. Select "Extensions > Manage > Manage".
  2. Locate the line with name "System - Add Custom Javascript" in the list.
  3. Check the line and click "Uninstall".

Notice

It is recommneded to place it at the end of the plugin order in the Plug-in Manager.

Please have in mind that some templates and extensions may have special code customizations that affect the normal operation of Joomla and this may not allow your custom Javascript code to load last.

Full Customization

If you need full customization of your website then you can use all the following free extensions:

  1. Add Custom PHP
  2. Add Custom CSS
  3. Add Custom Javascript

It is recommended to put these extensions in the order specified and after all other extensions in the list.