End of Support for Joomla 3 - Forum closed

Which file to add custom javascript to head tag?

Which file to add custom javascript to head tag? was created by sedonagate

Posted 8 years 9 months ago #11926
Hello, I want to add some custom javascript to the head tag of my template (my template was made copying the Pasta Template and renaming it in the admin).
The usual index.php file is not it. What is the right file to add javascript to my head tag so that it is on every page of my site? The javascript I want to add is Google Analytics outbound link tracking code. Thank you for your help.

Please Log in or Create an account to join the conversation.

Please Log in or Create an account to join the conversation.

Replied by sedonagate on topic Which file to add custom javascript to head tag?

Posted 8 years 9 months ago #11936
Question: Is this the same as:
layouts/theme.php

Thanks for your help!

Please Log in or Create an account to join the conversation.

Replied by joomlaplates on topic Which file to add custom javascript to head tag?

Posted 8 years 9 months ago #11940
Yes, sorry I was wrong.
In the Pasta theme you have to use this file:
../jp-pasta/layouts/theme.php

Please Log in or Create an account to join the conversation.

Moderators: joomlaplates

Installations-Service

Don´t waste your time, we install your purchased Template
with the "Demo Content" within the next 24 hours.

Buy Now - 59€

Joomlaplates/Theme-Point is not affiliated with or endorsed by Open Source Matters or the Joomla! Project

Copyright © 2024 JoomlaPlates | Professional Joomla Templates with Uikit 3

Disclaimer & Privacy | License