Forums / Templates, Stylesheets, Page Layout / changing header_bg graphic on certain pages, and printing it

changing header_bg graphic on certain pages, and printing it

Locked

Started by otakushark on 28 Dec 2007, 6:12 PM · Views: 848

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
28 Dec 2007, 6:12 PM
#1
otakushark avatar

otakushark

New Zenner

Join Date:
Dec 2007
Location:
Northern California
Posts:
45
Plugin Contributions:
0

changing header_bg graphic on certain pages, and printing it

On a semi-related note to my previous post, since I'm pointing logo.gif at a Biography EZpage, I'd like to point header_bg (which now contains the store logo) at the Home page. I also want the header_bg image to show up when pages are printed. How would I go about doing that?

The site is http://nelsonfinearts.com

29 Dec 2007, 5:04 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: changing header_bg graphic on certain pages, and printing it

otakushark:

On a semi-related note to my previous post, since I'm pointing logo.gif at a Biography EZpage, I'd like to point header_bg (which now contains the store logo) at the Home page.
Do you mean if someone clicks on the header_bg graphic but not on logo.gif, you want it to take them to the home page?
You'd have to add some sort of clickable link overtop of your bg graphic to do that, or define the whole region as a clickable item with the stylesheet and assign the link to it. It can get tricky.

Is this to happen on all pages? or just some? and why?

otakushark:

I also want the header_bg image to show up when pages are printed. How would I go about doing that?

Sorry, background images aren't printed.
If you want it printed, you'll have to add it as a foreground image, and then hide the foreground image when not printing, via the main stylesheet, and make it visible when printing, via the print-stylesheet.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

31 Dec 2007, 7:39 PM
#3
otakushark avatar

otakushark

New Zenner

Join Date:
Dec 2007
Location:
Northern California
Posts:
45
Plugin Contributions:
0

Re: changing header_bg graphic on certain pages, and printing it

DrByte:

Do you mean if someone clicks on the header_bg graphic but not on logo.gif, you want it to take them to the home page?

Yes, exactly. The logo graphic is being used as a link to the Biography page.

DrByte:

Is this to happen on all pages? or just some? and why?

All pages. Even though Zen Cart has a "Home" menu item, I think most people are more used to clicking on the logo to take them back to the home page.

DrByte:

Sorry, background images aren't printed. If you want it printed, you'll have to add it as a foreground image, and then hide the foreground image when not printing, via the main stylesheet, and make it visible when printing, via the print-stylesheet.

The foreground image would be the same as the background image, so would there really be a need to hide it when not printing?

Would defining the header image as a foreground button similar to the way the logo.gif is assigned take care of the printing problem?

I suppose I could also move the sidebar up into the header area and add a graphic button that takes the user to the Biography page, then use the Logo.gif image for the logo as originally intended. Would that be an easier approach?