# evoYTMode: requirements and installation

> Joomla, PHP and YOOtheme Pro requirements for evoYTMode, how to install the plugin, which templates it acts on, what changes on your site when it is enabled and the Download ID.

## Requirements

| Component | Minimum |
| --- | --- |
| Joomla | 5.0 |
| PHP | 8.1 |
| YOOtheme Pro | 5.0, installed in `templates/yootheme` |

The installer checks all three. If one is not met it cancels the installation with a message such as “evoYTMode needs YOOtheme Pro 5.0.0 or later installed in templates/yootheme”. The YOOtheme version is read from `templates/yootheme/templateDetails.xml`, so the check will not find the template if it lives in another folder.

Since 1.1.2, the plugin only adds its button and scripts when the page’s active template is YOOtheme or a child theme of it (`yootheme`, `yootheme_name` or `yootheme-name`). With evoTheme or any other template it injects nothing, so a second light/dark switch does not appear. The installer still requires YOOtheme Pro in `templates/yootheme` even if the active template is a different one.

## Install the plugin

1. Download `plg_system_evoytmode-<version>.zip`.
2. In Joomla, go to *System → Install → Extensions* and upload the ZIP.
3. The plugin enables itself on install. To check, go to *System → Plugins* and look for “System - evoYTMode (light and dark mode for YOOtheme Pro)”.
4. Open any public page, with YOOtheme as the active template. With the default settings you will see the mode button in the header corner and, on mobile, next to the menu button.
5. Open a page in the YOOtheme Pro builder and add an element: the **Colour mode** element is in the **evoAddons** group, so you can place the button wherever you want.

Installing the plugin does not change the colours of your site. The generic dark skin is off by default, and the plugin only sets two attributes on the `html` tag and declares the browser colour scheme (form controls, scrollbars). The steps to get a real dark mode are in [first steps](https://evoaddons.com/en/documentation/evoytmode-first-steps).

On install and on update the installer deletes `administrator/cache/autoload_psr4.php`, so Joomla picks up the new namespace straight away. You do not need to do it by hand.

If the plugin is disabled, there is no button and no element. See [uninstalling](https://evoaddons.com/en/documentation/evoytmode-uninstall).

## Updating from an earlier version

You update by installing the ZIP over the existing plugin (the manifest uses the `upgrade` method) or through Joomla’s updates. Your settings are kept.

One thing to know if you come from 1.0.0: since 1.1.0 the visitor’s choice is stored with a date, and a stored value without a date is discarded and deleted when it is read. Visitors who had already chosen a mode in the old format have to choose again, once. More in [data it handles](https://evoaddons.com/en/documentation/evoytmode-data) and in the [changelog](https://evoaddons.com/en/documentation/evoytmode-changelog).

## Download ID and updates

The plugin does not check the licence in order to work. The Download ID is for receiving updates through Joomla.

1. Copy the Download ID of your licence from the customer area. It looks like `EVO-XXXX-XXXX-XXXX-XXXX`.
2. Go to *System → Update Sites*, open the evoYTMode row and paste the key into Joomla’s “Download Key” field.
3. The plugin picks it up, checks the format, validates it against the licence server and activates your site’s domain.
4. To see the status, open *System → Plugins → System - evoYTMode* and go to the **License** tab. It shows the last four characters of the key, the status and, if the licence is active, the date until which you receive updates. “Check now” and “Remove” re-check the licence or remove the key.

Each licence is assigned to one domain. Tiers, terms and site limits are covered in [licences and updates](https://evoaddons.com/en/documentation/licences-and-updates).

---

https://evoaddons.com/en/documentation/evoytmode-install
