Open the template file that you want to add the JS code to. This file is typically named “index.php” and can be found in the template directory. You can use any text editor to edit this file, such as Notepad or Sublime Text.
Within the “head” section of the template file, add the following code to reference your custom JS file:
Save the template file and upload it to your website’s server using your FTP client. Make sure to overwrite the old file with the new one.
Once you’ve uploaded your changes, test your website to make sure your custom JS code is working as intended. You can do this by opening your website in a web browser and checking that the JS code is executing properly.