Forums / Templates, Stylesheets, Page Layout / Where do my head and body elements go?

Where do my head and body elements go?

Locked

Views: 1,541

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
8 Sep 2006, 9:11 PM
#1
cosmocanuck avatar

cosmocanuck

New Zenner

Join Date:
Jun 2006
Posts:
85
Plugin Contributions:
0

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

8 Sep 2006, 9:33 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

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