Results 1 to 6 of 6
  1. #1
    Join Date
    Jun 2011
    Posts
    9
    Plugin Contributions
    0

    Default 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.

  2. #2
    Join Date
    Sep 2005
    Location
    Waikato, New Zealand
    Posts
    1,539
    Plugin Contributions
    3

    Default 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
    Webzings Design
    Semi retired from Web Design

  3. #3
    Join Date
    Jun 2011
    Posts
    9
    Plugin Contributions
    0

    Default 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.

  4. #4
    Join Date
    Jun 2011
    Posts
    9
    Plugin Contributions
    0

    Default 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!

  5. #5
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default 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.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  6. #6
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,263
    Plugin Contributions
    3

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

    Quote Originally Posted by Hamilton33 View Post
    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.
    20 years a Zencart User

 

 

Similar Threads

  1. Replies: 1
    Last Post: 8 Feb 2011, 02:07 AM
  2. Include a custom php file in mainpage.php
    By BeautyHealth.com.cy in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 8 Nov 2010, 02:45 PM
  3. I can't find the CUSTOM folder -- includes/languages/english/custom/header.php
    By Yammits in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 11 Jul 2010, 10:26 PM
  4. template_func.php not working on custom template front page
    By bazfr in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 3 Aug 2008, 02:17 AM
  5. header.php and meta_tags.php do not seem to be drawing from my custom folder
    By cynthia_haide in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 11 Oct 2007, 07:21 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR