Hi Alain,
Thanks for reaching out to us.
If your custom.js is not being applied, please note that simply placing the file inside the /js folder is not enough — Joomla won’t load it automatically.
You can use one of the following solutions:
Option 1: Load custom.js via your template (index.php)
Add the script using Joomla’s Web Asset Manager in your template’s index.php file before the closing </body> tag:
$wa = $this->getWebAssetManager();
$wa->registerAndUseScript('custom', 'templates/your_template/js/custom.js');
Alternatively, you can include it directly:
<script src="/templates/your_template/js/custom.js"></script>
Option 2: Use Template Styles → Custom JavaScript
If your template provides a Custom JavaScript field, you can paste your JS code there. This ensures the script is loaded across your site without modifying files.
After making changes, please clear your Joomla cache and browser cache.
Let us know if it still doesn’t work 👍
Thanks