Zen Cart Logo
Forums / General Questions / html header php file not in my custom template?

html header php file not in my custom template?

Views: 929

Results 1 to 6 of 6
14 Jul 2011, 2:56 AM
#1
hamilton33 avatar

hamilton33

New Zenner

Join Date:
Jun 2011
Posts:
9
Plugin Contributions:
0

html header php file not in my custom template?

Hello,

Simple analytics is requiring me to find the .html_header.php file to copy/ paste code right before the </head> tag. However, that file is not available with my template.

Any suggestions? Thank you.

14 Jul 2011, 3:21 AM
#2
nigelt74 avatar

nigelt74

Totally Zenned

Join Date:
Sep 2005
Location:
Waikato, New Zealand
Posts:
1,558
Plugin Contributions:
1

Re: html header php file not in my custom template?

  1. Find the html_header.php file
  2. create a folder with the name of your template at the same level as it,
  3. Copy the html_header file into this new directory.
  4. Congratulations you have just created a file override
  5. go into the new directory and edit the html_header file there with your simple analytics changes

more about overriding here

https://www.zen-cart.com/tutorials/index.php?article=36

14 Jul 2011, 3:25 AM
#3
hamilton33 avatar

hamilton33

New Zenner

Join Date:
Jun 2011
Posts:
9
Plugin Contributions:
0

Re: html header php file not in my custom template?

No offense, but I get the feeling you don't want to be here, so don't.

@everyoneelse I still need help.

14 Jul 2011, 3:33 AM
#4
hamilton33 avatar

hamilton33

New Zenner

Join Date:
Jun 2011
Posts:
9
Plugin Contributions:
0

Re: html header php file not in my custom template?

@Everyone

Problem solved. Didn't use advice above. Apparently, my template pulled files from the "template_default."

I apologize for being rude; 99/100 of the times I come here, the people on this forum are absolutely helpful, Haredo and everyone else. But I just felt this guy had no interests in actually helping solve my problem.

So, thanks again all!

14 Jul 2011, 3:39 AM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: html header php file not in my custom template?

Actually the advice given was correct. You should not edit template_default files directly. You should make a copy of them in your custom template's folder and edit them there.

That's WHY template overrides exist. Template_default files are used automatically when you don't have a customized version of a given file.

14 Jul 2011, 8:09 AM
#6
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: html header php file not in my custom template?

Hamilton33:

But I just felt this guy had no interests in actually helping solve my problem.

There can be no more helpful a guy on this forum than Nigel, whose advice was not only 100% accurate, but was delivered to you in a way that explained as simply as possible how to go about it. AND he replied within an hour of your request.

Good to see that you apologised - but what on earth caused you to think he was not being helpful? I find that very odd.

Nigel... please carry on giving your advice on the forum. The rest of us are extremely grateful for your expertise.