views:

38

answers:

2

I am working with Magento and need to remove a Javascript that is being included in the <head> section by default.

I am using a modified theme called modern. I am looking for head.phtml in:

app/design/frontend/default/modern/template/page/html/head.phtml

It does not exist. I do have header.phtml and footer.phtml. The code from header.phtml starts well after the <body> of the document.

Where in the world would the head.phtml file be?

Thanks in advance.

A: 

I figured out what the problem was. I needed to look in the base directory under the default template:

app/design/frontend/base/default/template/page/html

I'm not exactly sure why though.

30Stack
This is because Magento's templating system is hierarchical - the modern design will inherit any templates that it does not have from the default design.This is something you will likely want to read more about in the Magento knowledgebase and wiki.
Chris Norton
+1  A: 

FWIW, JS should usually be removed by commenting/deleting relevant lines from the /layouts files in your theme, not the head template file itself. Unless someone added those script lines manually (naughty code monkey), of course.

Joseph Mastey