Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2009
    Location
    Scotland
    Posts
    76
    Plugin Contributions
    0

    help question Adding script between <head> tags

    Hello,

    I need to add some script between the <head> tags on the home page to make a picture rotation work. Can anyone tell me the location of the page I need to enter the script in please? I have searched here and not found anything and I have also purchased the Zen Cart book but cannot find it in there either. (Disappointed to see that the index at the back of the book has been dropped for this edition)

    Many thanks in advance

    Tog

  2. #2
    Join Date
    Dec 2009
    Location
    Scotland
    Posts
    76
    Plugin Contributions
    0

    Default Re: Adding script between <head> tags

    Hello,

    I found the answer in the similar threads list below (shame that only appears after posting the question) the location is:
    /includes/templates/template_default/common/html_header.php

    Best wishes

    Tog
    Last edited by Togfather; 27 Jul 2014 at 11:06 AM.

  3. #3
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Adding script between <head> tags

    Two MUCH BETTER options are:

    a) stick the code into a separate new file:
    /includes/templates/NAME_OF_YOUR_TEMPLATE_FOLDER_HERE/jscript/jscript_picturestuff.php

    or if you're rather directly edit an html file (but that means you have to customize more core files)
    b) instead of touching template_default you should do it in your own customized file for your own template:
    /includes/templates/NAME_OF_YOUR_TEMPLATE_FOLDER_HERE/common/html_header.php
    .

    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.

 

 

Similar Threads

  1. non-english head tags goes out of <head></head>
    By Jerry5763837 in forum General Questions
    Replies: 5
    Last Post: 5 Jun 2012, 02:21 PM
  2. Replies: 8
    Last Post: 28 Feb 2012, 03:05 PM
  3. I need to place some code between the HEAD tags..
    By Scott_C in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 5 Dec 2009, 05:16 AM
  4. Adding code to <head> tags in ezpages
    By donplay in forum General Questions
    Replies: 1
    Last Post: 3 May 2009, 05:13 AM
  5. Adding a head tag script
    By gardengate in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 13 Oct 2006, 01:46 AM

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