Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2008
    Posts
    1
    Plugin Contributions
    0

    Default java script in header

    Brand new to zen cart.
    I am trying to place a java script in the header but can't get it to take. Please help. I created a java script file in languages/english/custom. Then tried adding this to the header.php:
    define('HEADER_ALT_TEXT', '<script src="xramp_javascript.js"
    type="text/javascript"></script>');

    Thanks

  2. #2
    Join Date
    Aug 2006
    Location
    UK
    Posts
    449
    Plugin Contributions
    0

    Default Re: java script in header

    as copied from the /docs/read_me_jscript.html that you will have downloaded in the zencart zip...


    Site-Wide jscript's
    jscript*.js files -- to be "linked" by your site

    Any file in the includes/templates/{template_directory}/jscript/ directory with the following filename format will be loaded globally on every page of your shop:
    jscript_{unique_name}.js
    (where {unique_name} can be anything you want)
    ~Steve~

 

 

Similar Threads

  1. Java script in header bizarrness!
    By exeter_acres in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 30 Mar 2009, 07:22 PM

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