osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

Add a Header background image

This is a discussion on Add a Header background image within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; Hey Almost every time I Google an answer to a question I have about osCommerce, oscmax is in the results ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Modification Help

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Reply

 

LinkBack Thread Tools
  #1  
Old 04-09-2008, 08:03 AM
New Member
 
Join Date: Apr 2008
Posts: 10
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 0
paulb104 is on a distinguished road
Default Add a Header background image

Hey

Almost every time I Google an answer to a question I have about osCommerce, oscmax is in the results so I thought I'd join and participate directly.

I know the header color can be changed from the installed white. I have a background image for the page and I want to put the same image in the header.


I have seem multiple posts about this, but never a solution.

Can it be done? If so, how?

While I'm on the topic, I would also love to add the same background image to two places.

The first is the "New Products For <month>" section and the second it the "Let's See What We Have Here" area when a category is clicked on.

With these changes, the background of the entire page, regardless of the area, should be seamless as the one background image.

Thanks!!!!!

Paul
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 04-09-2008, 10:48 AM
Active Member
 
Join Date: Oct 2005
Location: wherever I happen to be at the moment
Posts: 411
Thanks: 3
Thanked 64 Times in 62 Posts
Rep Power: 6
met00 is a jewel in the roughmet00 is a jewel in the roughmet00 is a jewel in the roughmet00 is a jewel in the rough
Default Re: Add a Header background image

The header is in a table. Apply the background image to the table.

see... Tryit Editor v1.4 for how to do it.
__________________
so endith the lesson
<think>sometimes I just sit's and thinks</think>
"Here you are with a hand full of holes, a thumb up your ass, and a big grin to pass the time of day with." - TWB
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 04-09-2008, 11:56 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,284
Thanks: 66
Thanked 306 Times in 292 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default Re: Add a Header background image

Quote:
Almost every time I Google an answer to a question I have about osCommerce, oscmax is in the results so I thought I'd join and participate directly.
Our discussion forums support both osCommerce and osCMax (the difference between the two is not as big as the osC folks would want you to believe!)

So, if I understand, you want the header to use that gray background image? All you need to do is edit the stylesheet, and specify a background image. I believe the style you are looking for is:

TR.header :: Controls the background color of the header cell.
__________________
Michael Sasek
osCMax Developer


osCMax Templates - Hundreds of premium quality templates. New designs every month!

xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience


osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 04-09-2008, 08:25 PM
New Member
 
Join Date: Apr 2008
Posts: 10
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 0
paulb104 is on a distinguished road
Default Re: Add a Header background image

Thanks to both of you.


Quote:
Originally Posted by michael_s View Post
So, if I understand, you want the header to use that gray background image? All you need to do is edit the stylesheet, and specify a background image. I believe the style you are looking for is:
TR.header :: Controls the background color of the header cell.
You mean the stylesheet.css in the catalog folder? I currently have all these three background lines in the code, but it doesn't work:
BODY {
background: white;
color: black;
margin: 0px;
background-image: url('images/GREY5.jpg');
background-repeat: repeat;
background-position: center; }
}
Quote:
Originally Posted by met00 View Post
The header is in a table. Apply the background image to the table.see... Tryit Editor v1.4 for how to do it.
In catalog/includes/header.php, at the bottom there are four lines with <Table code. I added each of these to all four, and none worked:
background="GREY5.jpg"
background="/catalog/images/GREY5.jpg"
background="www.mysite.com/catalog/images/GREY5.jpg"
Both are great suggestions, but I don't have enough info to implement either...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5  
Old 04-10-2008, 09:21 AM
New Member
 
Join Date: Apr 2008
Posts: 10
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 0
paulb104 is on a distinguished road
Default Re: Add a Header background image

Quote:
Originally Posted by met00 View Post
The header is in a table. Apply the background image to the table.
Where's the table?


Quote:
Originally Posted by michael_s View Post
So, if I understand, you want the header to use that gray background image? All you need to do is edit the stylesheet, and specify a background image. I believe the style you are looking for is:
TR.header :: Controls the background color of the header cell.
In the Body section was this code:
BODY {
background: white;
color: black;
margin: 0px; }

I changed it to this and it does not work:
BODY {
background: white;
color: black;
margin: 0px;
background-image: url('images/GREY5.jpg');
background-repeat: repeat;
background-position: center; }
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6  
Old 04-10-2008, 11:06 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,284
Thanks: 66
Thanked 306 Times in 292 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default Re: Add a Header background image

As per my first reply, you need to specify the background image in the TR.header of the stylesheet, not the BODY section.

It would look like this:

TR.header {
background-image: url('images/GREY5.jpg');
}


Then just make sure that the style is also actually added to the <tr> tag of the cell.
__________________
Michael Sasek
osCMax Developer


osCMax Templates - Hundreds of premium quality templates. New designs every month!

xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience


osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7  
Old 04-10-2008, 11:25 AM
New Member
 
Join Date: Apr 2008
Posts: 10
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 0
paulb104 is on a distinguished road
Default Re: Add a Header background image

Quote:
Originally Posted by michael_s View Post
It would look like this:

TR.header {
background-image: url('images/GREY5.jpg');
}


Then just make sure that the style is also actually added to the <tr> tag of the cell.
Now THAT'S what I'm talkin' about

All I need now is to do the same for the "New Products For <month>" section and the second it the "Let's See What We Have Here" area when a category is clicked on.

Then that part of the formatting will be complete!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
infobox header background image michael_s New osCommerce Contributions 0 08-24-2007 11:14 PM
Changing Background Color of Header knowgangs osCMax v1.7 Discussion 2 07-12-2005 11:32 AM
Background Image Studio143 osCMax v1.7 Discussion 5 01-02-2005 05:26 PM
How to add image navigation bar in header. Astro osCommerce 2.2 Modification Help 0 10-06-2004 12:56 AM
Added then lost my header background image! How acrylictribesmen osCommerce 2.2 Modification Help 2 07-03-2004 08:02 AM


All times are GMT -8. The time now is 08:31 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax