PDA

View Full Version : Integrating your own HTML header?


mm2008
27-03-08, 10:51
Can anyone help me?
I am setting up a comparison page which is part of an existing website, I already have a universal header, but I cant manage to put it into my compare site.

Rather than having an image as a header, i have a table containing the logo, and 4 rollover buttons to jump to other sections of the website. I want to somehow integrate this into the compare site, but am not sure how.

I have attempted to paste the HTML for the header into page_header.tpl but this didnt seem to work.
I also attempted to use the include code to grab the header from a html file, which also failed to work.

Like most people on this forum, I am new to PHP but know my way round HTML and CSS to a good standard.

If anyone can help me out it would be muchly appreciated, at the moment this is a rather big issue.
Thankyou

amcho
27-03-08, 12:19
page_header.tpl in templates/template_?/elements
should do it on a standard install of shopwindow.

mm2008
28-03-08, 14:59
Thankyou for that! :)

The navigation is supposed to have rollover images in, but the javascript to make them work, ends up crashing the site i.e. nothing other than the background colour loads.

Anyone know how I could get around this? the client is complaining that it doesn't display the same as the other parts of the site :(

All help appreciated

babrees
28-03-08, 15:06
Can you not do the header in html and css?

mm2008
28-03-08, 17:53
Yeap! I ended up having to do that instead.
I'm told that on another computer, it jumps, but on mine it seems to work fine.
Feel free to take a look and let me know if the nav displays alright.
www.compare.offers-only.co.uk

Next I need to style the breadcrumbs.

thanks muchly for your help.

babrees
31-03-08, 07:32
Yeap! I ended up having to do that instead.
I'm told that on another computer, it jumps, but on mine it seems to work fine.
Feel free to take a look and let me know if the nav displays alright.
www.compare.offers-only.co.uk

Next I need to style the breadcrumbs.

thanks muchly for your help.

It jumps in Firefox the first time you rollover. Preload the images and that should fix it. :)

mm2008
31-03-08, 10:46
It jumps in Firefox the first time you rollover. Preload the images and that should fix it. :)

Where do I put the preload?
there is no body in the header template, so i presume they preload in the <body> for index, category and product?

Sorry for being a bit thick here