thanks for that. where is this file located , whats the path?
thanks for that. where is this file located , whats the path?
/includes/templates/your_template/common/tpl_header.php.
If you don't have a copy there yet, take it from /includes/templates/template_default/common/tpl_header.php, edit and save as /includes/templates/your_template/common/tpl_header.php.
ok, found it now. looks a bit complex in there. where would i add my htnl code? any suggestions?
That depends on what you want to add, and where you want it to show up. The header elements are organized in code blocks marked off with identifying comments like <!--bof xxxx-->. They appear generally in the same order in the file as onscreen, so you can use them as a guide. For more detailed advice, we need more information from you.
Hi Glenn, i also want to do the same, the site is for a customer who wants a banner putting in the middle of the header. This is going to be an adult DVD site but there are no images on it yet.
I haven't made the banner yet but it will fit within the header comfortably. I would really appreciate some help with the code.
The site is here
Many Thanks
I started off using a template that had most of the configuration I wanted and than went from their. Check out the templates under downloads. I believe there is one with a header banner.
I really don't have any idea what your banner code should look like. I can only advise you about code placement within the file. There is a header banner built into Zen Cart - the display code is in the branding display section of tpl_header.php. You should be able to either use or modify that to suit your needs.
You might check the FAQ/tutorials for information on banner use.
If you want the banner to go in the open space between your logo and tagline, be aware that your template has a fluid layout and will expand and contract to fit the window. If the window is small, a banner in that location may cause overlapping or other undesirable effects.
You may be able to use min-width: on #mainWrapper to ensure that the page doesn't try to shrink beyond a reasonable size.
Last edited by gjh42; 29 Oct 2007 at 06:02 PM.