evoYTMode: requirements and installation
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
- Download
plg_system_evoytmode-<version>.zip. - In Joomla, go to System → Install → Extensions and upload the ZIP.
- The plugin enables itself on install. To check, go to System → Plugins and look for “System - evoYTMode (light and dark mode for YOOtheme Pro)”.
- 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.
- 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.
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.
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 and in the 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.
- Copy the Download ID of your licence from the customer area. It looks like
EVO-XXXX-XXXX-XXXX-XXXX. - Go to System → Update Sites, open the evoYTMode row and paste the key into Joomla’s “Download Key” field.
- The plugin picks it up, checks the format, validates it against the licence server and activates your site’s domain.
- 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.