Add Custom PHP

Load your custom PHP code every time a page is loaded. Available as plugin for Joomla 2.5.x and 3.x.

Joomla 2.5.x Compatible Joomla 3.x Compatible

Plugin Documentation

This plugin can execute the custom code on the following Joomla events:

In most cases, the last event (onBeforeCompileHead) is going to fit your needs.

Joomla Installation

  1. Download Add Custom PHP.
  2. In the Joomla control panel select: Extensions > Install/Uninstall.
  3. In the Upload Package File section click Choose File and locate the "".
  4. Then click Upload & Install to upload the file and complete the installation.


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

Joomla Parameters


The Add Custom PHP plugin has the following parameters:

Change Log

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.