Results 1 to 10 of 10
  1. #1
    Join Date
    Nov 2007
    Posts
    260
    Plugin Contributions
    0

    Default beginner asking layout about changes - how to

    I been trying to search the forum but not been able to find following answares.

    1. I need to have header image that is higher and wider than the original.
    2. I need the center part of the page to be wider.
    3. I need to edit product listing page so that I have several product images per row and price below image.

    I am a coder but would need som direction how to proceed.
    I have allready red the basic FAQ about hows to create own template.
    Well it dont tell mutch how to do editing only how to make a start directory tree to build templates on.

    marksu

  2. #2
    Join Date
    Nov 2007
    Posts
    260
    Plugin Contributions
    0

    Default Re: beginner asking layout about changes - how to

    Some solution I allready found.

    Defining the height of the header pic.
    #logoWrapper {
    width:100%;
    height:146px; /*defining of hight of header image*/
    background-image:url(../images/header_bg.jpg);
    background-repeat:no-repeat;
    background-position:center;
    text-align:center;
    padding-top:5px;
    }

  3. #3
    Join Date
    Nov 2007
    Posts
    260
    Plugin Contributions
    0

    Default Re: beginner asking layout about changes - how to

    How do i make the page wider so it covers the most of the monitor width?

    Solution>

    /*wrappers - page or section containers*/
    #mainWrapper {
    background-color: #FFFFFF;
    text-align: left;
    width: 90%; /*this makes the hole site 90% of the monitor width*/
    vertical-align: top;
    }

    How to have product list display several products in a row?

    Solution>

    Install module named Column Layout Grid for Product Listing

    donload http://www.zen-cart.com/index.php?ma...products_id=77

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

    Default Re: beginner asking layout about changes - how to

    Good for you for finding these by yourself!

    You should also edit /includes/languages/english/header.php (save as /includes/languages/english/your_template/header.php) to set the logo height and width, and other important items.

  5. #5
    Join Date
    Nov 2007
    Posts
    260
    Plugin Contributions
    0

    Default Re: beginner asking layout about changes - how to

    Interesting file that header.php my next task was to figure out the logo editing.
    For current template I have the logo integrated in header image so the logo image is a bit unnecessary.

    Is there a was way to disable the logo.

    editing header.php
    define('HEADER_ALT_TEXT', '');
    define('HEADER_SALES_TEXT', '');
    define('HEADER_LOGO_WIDTH', '192px');
    define('HEADER_LOGO_HEIGHT', '64px');
    define('HEADER_LOGO_IMAGE', '');

    Well that in firefox looks OK but in IE it shows red cross.
    Well sure I can edit the logo.gif to be one transparent pixel, but is there no disable feature.
    Just curious.


    EDIT:

    Well maybe best way to do it trough css adding
    #logo {display: none;}

    Or is there a separate disable property?
    Well I am just curious.

    marksu


    Quote Originally Posted by gjh42 View Post
    Good for you for finding these by yourself!

    You should also edit /includes/languages/english/header.php (save as /includes/languages/english/your_template/header.php) to set the logo height and width, and other important items.
    Last edited by marksu; 19 Nov 2007 at 08:16 PM.

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

    Default Re: beginner asking layout about changes - how to

    The CSS display: none; works fine, or you can comment out the logo display code in /includes/templates/your_template/common/tpl_header.php (the <!--bof branding display--> section).

  7. #7
    Join Date
    Nov 2007
    Posts
    260
    Plugin Contributions
    0

    Default Re: beginner asking layout about changes - how to

    Thank you for that info.

    marksu

    Quote Originally Posted by gjh42 View Post
    The CSS display: none; works fine, or you can comment out the logo display code in /includes/templates/your_template/common/tpl_header.php (the <!--bof branding display--> section).

  8. #8
    Join Date
    Feb 2006
    Posts
    52
    Plugin Contributions
    0

    Default Re: beginner asking layout about changes - how to

    Hi,

    I know this is gonna sound stupid but i've gone to the stylesheet.css and the coding appears completely different. For example:

    stylesheet.css
    File Type: ASCII C program text, with very long lines, with CRLF line terminators

    --------------------------------------------------------------------------------

    /**
    * Main CSS Stylesheet
    *
    * @package templateSystem
    * @copyright Copyright 2003-2005 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    * @version $Id: stylesheet.css 5347 2006-12-22 20:26:09Z birdbrain $
    */

    body {
    margin: 0;
    font-family: verdana, arial, helvetica, sans-serif;
    font-size: 62.5%;
    color: #000000;
    background-color: #e5edf5;
    }

    a img {border: none; }

    a:link, #navEZPagesTOC ul li a {
    color: #3300FF;
    text-decoration: none;
    }

    a:visited {
    color: #3300FF;
    text-decoration: none;
    }

    a:hover, #navEZPagesTOC ul li a:hover, #navMain ul li a:hover, #navSupp ul li a:hover, #navCatTabs ul li a:hover {
    color: #FF0000;
    }

    a:active {
    color: #0000FF;
    }

    h1 {
    font-size: 1.5em;
    }

    h2 {
    font-size: 1.4em;
    }

    h3 {
    font-size: 1.3em;
    }

    h4, h5, h6, LABEL, h4.optionName, LEGEND, ADDRESS, .sideBoxContent, .larger{
    font-size: 1.1em;
    }

    Is em the sizing? Everything else on the forums are in px.

    Help this stupid person......please!

  9. #9
    Join Date
    Nov 2007
    Posts
    260
    Plugin Contributions
    0

    Default Re: beginner asking layout about changes - how to

    Now you are talking about font size. Not quit what my thread is about but..

    em is a font size that can be used instead of px.
    Em is a relative fonts size.
    If you use em to set font users can change the font size on page directrly from browser menu.

    Using px the font size is always fixed.

    Next time better to start own thread.
    If you still are confused I would succest to google "font size em".

    marksu

  10. #10
    Join Date
    Feb 2006
    Posts
    52
    Plugin Contributions
    0

    Default Re: beginner asking layout about changes - how to

    Sorry :-(

 

 

Similar Threads

  1. How do I make these layout changes?
    By kevin_a in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 31 Jul 2011, 04:15 PM
  2. Layout Changes
    By annettes in forum Templates, Stylesheets, Page Layout
    Replies: 37
    Last Post: 3 Mar 2011, 11:48 PM
  3. how do i remove the field asking for age
    By advarntek in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 8 Jun 2007, 08:07 PM
  4. Layout changes
    By bgroup99 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 13 Dec 2006, 05:47 PM
  5. this post IS NOT asking about attribute/stock module
    By slantedworldwide in forum General Questions
    Replies: 19
    Last Post: 5 Jun 2006, 04:38 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