Results 1 to 8 of 8
  1. #1
    Join Date
    May 2009
    Posts
    1
    Plugin Contributions
    0

    Default Customizing ZenCart Template

    Hello! I am a first time ZenCart user and I've run into a major obstacle. Although I now know how to edit almost everything on my site (fonts, columns, colors, etc.), I am having trouble figuring out how to cusomize my template with my own images, backgrounds, etc. If anyone has any advice I would really appreciate hearing from you! Thanks!

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

    Default Re: Customizing ZenCart Template

    You need to be a bit more specific with your question.

    If you want to use a background image, you add it to the correct place(s) in the stylesheet. Here's an example fromt the stylesheet used in the Fan Odyssey site in my sig.

    Code:
    /*wrappers - page or section containers*/
    #mainWrapper {
    	background-color: #000000;
      background-image: url('../images/space011.jpg');
    	text-align: left;
    	width: 100%;
    	vertical-align: top;
    	}
    
    #headerWrapper, #contentMainWrapper, #logoWrapper, #cartBoxListWrapper, #ezPageBoxList, #cartBoxListWrapper ul, #ezPageBoxList ul, #mainWrapper, #popupAdditionalImage, #popupImage {
    	margin: 0em;
    	padding: 0em;
    	}
    
    #logoWrapper{
      background-image: url('../images/space011.jpg');
    	background-repeat: repeat-x;
    	background-color: #000000;
    	height:110px;
    	width: 100%;
    	}
    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
    Sep 2008
    Posts
    10
    Plugin Contributions
    0

    Default Re: Customizing ZenCart Template

    Hi Afo,

    I think I have the same question. For the default theme, the page is centered on the screen. I would like to make the width of the page wider. I have gone to the css file, but I cant seem to find the correct setting to make the page wider.

    Which file and setting would that be?

    Thanks.

  4. #4
    Join Date
    Sep 2008
    Posts
    10
    Plugin Contributions
    0

    Default Re: Customizing ZenCart Template

    Solved my own problem. I was altering the stylesheet.CSS under the default, not the classic directory.

    Now it works fine. set it to width=95%

  5. #5
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Customizing ZenCart Template

    Quote Originally Posted by dukie6675 View Post
    Hi Afo,

    I think I have the same question. For the default theme, the page is centered on the screen. I would like to make the width of the page wider. I have gone to the css file, but I cant seem to find the correct setting to make the page wider.

    Which file and setting would that be?

    Thanks.
    open your stylesheet.css find the following declaration and change the highlighted portion to suit your needs.

    #mainWrapper {
    background-color: #000000;
    background-image: url('../images/space011.jpg');
    text-align: left;
    width: 750px;
    vertical-align: top;
    }

  6. #6
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Customizing ZenCart Template

    And, you shouldn't be altering files in either default or Classic. Much better idea to set up your CUSTOM template first thing.

  7. #7
    Join Date
    Feb 2009
    Posts
    43
    Plugin Contributions
    0

    Default Re: Customizing ZenCart Template

    same opinion. use the custom template and modify here, else the next upgrade will overwrite all the default files and you will land up restoring your modified files.

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

    Default Re: Customizing ZenCart Template

    Quote Originally Posted by noobuser View Post
    same opinion. use the custom template and modify here, else the next upgrade will overwrite all the default files and you will land up restoring your modified files.
    and if you restore your modified files, you're likely to remove the changes that prompted the upgrade/update. If you create your own custom template, your changes are protected and you can compare your changes to the latest version of ZC. It's the easiest way to do things. The override/template system works very well.
    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

 

 

Similar Threads

  1. v150 customizing template questions
    By DragonLady in forum Templates, Stylesheets, Page Layout
    Replies: 14
    Last Post: 4 Feb 2012, 01:43 AM
  2. Customizing Template
    By Tavalus in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 23 Jul 2007, 10:36 PM

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