Forums / Templates, Stylesheets, Page Layout / Add a background image to the "mostly grey" template

Add a background image to the "mostly grey" template

Locked

Started by leeudon on 17 Jan 2007, 9:46 AM · Views: 1,641

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
17 Jan 2007, 9:46 AM
#1
leeudon avatar

leeudon

New Zenner

Join Date:
Jan 2007
Posts:
18
Plugin Contributions:
0

Add a background image to the "mostly grey" template

I would like to add a background image to the header of the "mostly grey template". This would allow me design a header image but keep the home/logout/my account and search buttons in place.

This is a sample of what I'm trying to achieve:

http://www.thailandunique.com/images/shop.gif

Any help would be appreciated. Thanks.

17 Jan 2007, 10:45 AM
#2
adamboyle avatar

adamboyle

New Zenner

Join Date:
Nov 2005
Location:
Ipswich, UK
Posts:
18
Plugin Contributions:
0

Re: Add a background image to the "mostly grey" template

You could try this:

Find in YOUR_TEMPLATE/CSS/stylesheet.css (around line 175):

#headerWrapper, #contentMainWrapper, #logoWrapper, #cartBoxListWrapper, #ezPageBoxList, #cartBoxListWrapper ul, #ezPageBoxList ul, #mainWrapper, #popupAdditionalImage, #popupImage {
margin: 0em;
padding: 0em;
}

Remove "#headerWrapper, " at the front of the statement.

Add a new statement just above:

#headerWrapper {
background-image: url(images/mybackgroundimage.gif);
height: 100px; (change this to your own height!)
width: 200px; (change this to your own width!)
margin: 0em;
padding: 0em;
}

It should work :)

Adam Boyle

17 Jan 2007, 3:24 PM
#3
leeudon avatar

leeudon

New Zenner

Join Date:
Jan 2007
Posts:
18
Plugin Contributions:
0

Re: Add a background image to the "mostly grey" template

Thanks Adam, I will try this tommorow and let you know how I get on.

:smile:

18 Jan 2007, 8:46 AM
#4
leeudon avatar

leeudon

New Zenner

Join Date:
Jan 2007
Posts:
18
Plugin Contributions:
0

Re: Add a background image to the "mostly grey" template

Ok I'm nearly there, the background image displays but not exactly how I want it. I would like the zencart title image and tag line in the middle removed, and I would like the background I have just placed to be under the cart home and login buttons in the top left. The image is actually 120px high but is being squashed by the top buttons.

Sample here https://www.thailandunique.com/store

Thanks for your help, Lee

18 Jan 2007, 11:08 AM
#5
kobra avatar

kobra

Black Belt

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

Re: Add a background image to the "mostly grey" template

The quick way to get this is to use your fav graphic program and change the header.jpg image to a gif and give it the nam logo.gif then replace the one at om/store/includes/templates/mostlygrey/images/logo.gif with the new one.

Also remove the entry to display the current image

Zen-Venom Get Bitten