osCmax v2.5 User Manual
Results 1 to 7 of 7

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 ...

      
  1. #1
    New Member
    Join Date
    Apr 2008
    Posts
    17
    Rep Power
    0


    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

  2. #2
    osCMax Development Team met00's Avatar
    Join Date
    Oct 2005
    Location
    wherever I happen to be at the moment
    Posts
    854
    Blog Entries
    2
    Rep Power
    26


    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

  3. #3
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    Default Re: Add a Header background image

    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 Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  4. #4
    New Member
    Join Date
    Apr 2008
    Posts
    17
    Rep Power
    0


    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...

  5. #5
    New Member
    Join Date
    Apr 2008
    Posts
    17
    Rep Power
    0


    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; }

  6. #6
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    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 Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  7. #7
    New Member
    Join Date
    Apr 2008
    Posts
    17
    Rep Power
    0


    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!

Similar Threads

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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •