Go to the Joomla admin panel and go to
Extensions → Template Manager.
Find a website template you are using in the list of templates and open it (it should be marked with an asterisk).
index.php from the menu on the right.
In the code editing tab, find the
Open the Chaport application, go to Settings → Installation Code and click on
Copy Installation Code.
Go back to the Joomla admin panel and paste the installation code before the