This object is in archive! 
Template Questions - head.phtml and JS
Two questions.
One: Where is the default head.phtml file? I am trying to use some of the default content in our own head.phtml file but cannot find this.
Two: How can I include JS code in a .phtml custom file? Currently it appears to strip it all out and it is an integral part of the template. Includes are not possible here.
Hello Matt,
Default head.phtml is located in application/templates/layout
You better redefine it by building your own theme based on default one. More information on Themes and Customizing interface in Developer Manual.
You can add any js code also in your theme assets, located in public/themes//assets/js/ in scripts.js
We recommend using themes in order to not loose changes when updating system to the next version using built-in Auto-Upgrade tool.
You can also use our Theme Customization Service if you think it's more convenient for us to build it for you.
We'll be here to assist you in case any questions
Hello Matt,
Default head.phtml is located in application/templates/layout
You better redefine it by building your own theme based on default one. More information on Themes and Customizing interface in Developer Manual.
You can add any js code also in your theme assets, located in public/themes//assets/js/ in scripts.js
We recommend using themes in order to not loose changes when updating system to the next version using built-in Auto-Upgrade tool.
You can also use our Theme Customization Service if you think it's more convenient for us to build it for you.
We'll be here to assist you in case any questions
Hello Matt,
Default head.phtml is located in application/templates/layout
You better redefine it by building your own theme based on default one. More information on Themes and Customizing interface in Developer Manual.
You can add any js code also in your theme assets, located in public/themes//assets/js/ in scripts.js
We recommend using themes in order to not loose changes when updating system to the next version using built-in Auto-Upgrade tool.
You can also use our Theme Customization Service if you think it's more convenient for us to build it for you.
We'll be here to assist you in case any questions
Hello Matt,
Default head.phtml is located in application/templates/layout
You better redefine it by building your own theme based on default one. More information on Themes and Customizing interface in Developer Manual.
You can add any js code also in your theme assets, located in public/themes//assets/js/ in scripts.js
We recommend using themes in order to not loose changes when updating system to the next version using built-in Auto-Upgrade tool.
You can also use our Theme Customization Service if you think it's more convenient for us to build it for you.
We'll be here to assist you in case any questions
Replies have been locked on this page!