Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2006
    Posts
    85
    Plugin Contributions
    0

    Default Where do my head and body elements go?

    Hi!

    I'm setting up my second Zen Cart but am still not 100% solid on a couple of (basic, I think) concepts.

    I want to match an existing site, which includes:

    - a bit of javascript in the <head> section to make some rollovers work;
    - the aforementioned rollover menu, early in the <body> section (along with other header i.e. top of page, not <head>) graphics).

    I need the above to appear on all pages of the cart.

    I've created a custom template directory and am quite clear on the idea of overriding default template files with my own. But I'm not sure where to put the above elements: tpl_header.php? template_main_page.php?

    Are those two equivalent to the "head" and "body" sections of the HTML page?

    Thanks...
    adam

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Where do my head and body elements go?

    You can seach here for rollover and other terms. I am thinking, if I got it from your post, that you need to look into your tpl_header.php file.

    Look for the BOF for navigation and you might need to rearrange this to be after the BOF & EOF for the branding so that the nav bar, images & rollover effects are below the branding(logo & head image).
    Zen-Venom Get Bitten

 

 

Similar Threads

  1. Adding Code to HEAD and BODY tags?
    By redpanda in forum Templates, Stylesheets, Page Layout
    Replies: 13
    Last Post: 3 Nov 2021, 12:02 PM
  2. Replies: 8
    Last Post: 28 Feb 2012, 03:05 PM
  3. Need to add code below </head> tag and above <body> tag in product page
    By Danielle in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 11 Apr 2010, 07:53 PM
  4. I need to put something in the <head> and <body> tag
    By milobloom in forum General Questions
    Replies: 10
    Last Post: 18 Jan 2009, 01:01 AM
  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

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