Results 1 to 10 of 10
  1. #1
    Join Date
    Jul 2008
    Location
    Midwest
    Posts
    78
    Plugin Contributions
    0

    Default Adding a background image behind my ZenCart pages

    Is it possible to add a background image behind your ZenCart store pages?

    IOW, instead of the colored background, AKA wasted space, filler, or edges, I'd like to have my logo or other store related image tiled across the otherwise empty space.

    thx

  2. #2
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Default Re: Adding a background image behind your ZenCart pages

    You can do that in includes/templates/YOUR_TEMPLATE/css/stylesheet.css.

    This is a sample from the stylesheet from the Fan Odyssey site in my sig.

    Code:
    #mainWrapper {
    	background-color: #000000;
      background-image: url('../images/space011.jpg');
    	text-align: left;
    	width: 100%;
    	vertical-align: top;
    	}
    Mary Ellen
    I came; I saw; I Zenned
    Taking over the world... one website at a time
    Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

    Holzheimer
    Fan Odyssey

  3. #3
    Join Date
    Jul 2008
    Location
    Midwest
    Posts
    78
    Plugin Contributions
    0

    Default Re: Adding a background image behind your ZenCart pages

    Thanks for the help. It worked great.

  4. #4
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Default Re: Adding a background image behind my ZenCart pages

    I have that image in various points in the stylesheet which is why it appears as the background to the entire site. If you need the other locations, let me know, but it shouldn't be too hard to figure out.
    Mary Ellen
    I came; I saw; I Zenned
    Taking over the world... one website at a time
    Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

    Holzheimer
    Fan Odyssey

  5. #5
    Join Date
    Jul 2008
    Location
    Midwest
    Posts
    78
    Plugin Contributions
    0

    Default Re: Adding a background image behind my ZenCart pages

    If you can spare a minute, I'd love to know the various locations. This is my first attempt at this type of webstore and I am struggling to get over the hump. Thanks in advance.

  6. #6
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Adding a background image behind my ZenCart pages

    If you have a fixed width page, or space to the sides of the sidebars, you would want to put that background-image in the body {} rule at the very top of the stylesheet.

    Anything that has a class or id tag or an HTML element can have a background-image added to it, so there is not a "list" of places as such.

  7. #7
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Default Re: Adding a background image behind my ZenCart pages

    Here's all the places I added it for the Fan Odyssey site in my sig. I just copied the code I changed. There'll be other stuff in between.

    Code:
    #mainWrapper {
    	background-color: #000000;
      background-image: url('../images/space011.jpg');
    	text-align: left;
    	width: 100%;
    	vertical-align: top;
    	}
    
    #logoWrapper{
      background-image: url('../images/space011.jpg');
    	background-repeat: repeat-x;
    	background-color: #000000;
    	height:110px;
    	width: 100%;
    	}
    
    #navMainWrapper, #navSuppWrapper, #navCatTabsWrapper {
    	margin: 0em;
    	background-color: #000000;
    	background-image: url('../images/space011.jpg');
    	padding: 0.5em 0.2em;
    	font-weight: bold;
    	color: #ffffff;
    	height: 1%;
    	width: 100%;
    	}
    
    #navCatTabsWrapper {
    	background-color: #000000;
    	background-image: url('../images/space011.jpg');
    	color: #ffffff;
    }
    
    .centerBoxWrapper {
      background-color: #000000;
      background-image: url('../images/space011.jpg');
    	border: 1px solid #9a9a9a;
    	height: 1%;
    	margin: 1.1em 0;
    	}
    .leftBoxContainer, .rightBoxContainer {
      background-color: #000000;
      background-image: url('../images/space011.jpg');
    	margin: 0em;
    	border: 1px solid #c0c0c0;
    	border-bottom: 5px solid #COCOCO;
    	margin-top: 0.5em;
    	}
    
    .sideBoxContent {
      background-color: #000000;
      background-image: url('../images/space011.jpg');
    	padding: 0.4em;
    	}
    Mary Ellen
    I came; I saw; I Zenned
    Taking over the world... one website at a time
    Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

    Holzheimer
    Fan Odyssey

  8. #8
    Join Date
    Jul 2008
    Location
    Midwest
    Posts
    78
    Plugin Contributions
    0

    Default Re: Adding a background image behind my ZenCart pages

    Thanks for the help. I'm working on the changes now.

    Another thing that I have been looking for is the command that centers your page on the screen. As opposed to having everything left justified.

  9. #9
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Adding a background image behind my ZenCart pages

    text-align: center; will do that. You probably want to put it in body {}.

  10. #10
    Join Date
    Jul 2008
    Location
    Midwest
    Posts
    78
    Plugin Contributions
    0

    Default Re: Adding a background image behind my ZenCart pages

    thanks for your help. I've made a lot of progress in the last few days.

 

 

Similar Threads

  1. how do I add a background image BEHIND?
    By jviney in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 11 May 2011, 04:49 PM
  2. Making header background image higher without being hidden behind centre of website
    By Sushigal in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 23 Apr 2009, 04:36 PM
  3. Possible for another background image behind product listings?
    By ObiNYC in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 12 Mar 2008, 12:05 AM
  4. Possible for another background image behind product listings?
    By ObiNYC in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 7 Mar 2008, 05:15 AM

Posting Permissions

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