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

    Default custom <head> for new page

    Hi,

    I have followed the instructions for creating a new page detailed at http://www.zen-cart.com/wiki/index.p...ting_new_pages

    What I would like to do now is create a html <head> section specifically for my new page, which file would I need to alter/create containing a <head> section specifically for this page ?

    The main reason for this, is I want to add a google map to this page and need access to the <head> section.

    Thanks

    Andy

  2. #2
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Re: custom <head> for new page

    There is absolutely no need to alter the <head> to add google map. If you want to include jscript file, zencart allows you to do it easily in many ways. Please check the documents in the docs/ folder goes with your zencart package.
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

  3. #3
    Join Date
    Sep 2008
    Posts
    20
    Plugin Contributions
    0

    Default Re: custom <head> for new page

    Thanks for the advice, I found I needed to create two new files for my findus page which contains a google map.

    includes/templates/MYTEMPLATE/jscript/jscript_findus.js
    includes/modules/pages/findus/on_load_findus.js

    As there is no equivalent support for onunload (as far as I know) I got around this by placing the following code in the on_load_findus.js file:-

    Code:
    load();" onunload="GUnload();
    Not sure if there is any downside or better way than this.

    Thanks,

    Andy

 

 

Similar Threads

  1. v153 edit <head> of main page only for split testing
    By thomaswhiteeagle in forum General Questions
    Replies: 2
    Last Post: 21 Apr 2015, 07:20 AM
  2. 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
  3. Head edit for EZ-page
    By EarlyFloyd in forum General Questions
    Replies: 4
    Last Post: 12 Sep 2011, 04:55 PM
  4. HELP! Main page <head></head>
    By mwnname in forum Basic Configuration
    Replies: 2
    Last Post: 21 Nov 2009, 02:23 PM
  5. Adding Custom Javascript to head and body
    By Xena in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 19 Jun 2007, 04:30 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