Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17
  1. #11
    Join Date
    Sep 2007
    Posts
    5
    Plugin Contributions
    0

    Default Re: Home Page Generation - cont..

    I'm new to zen trying to get a feel also. It looks like the style sheets are called from the html_header.php file.

    /includes/templates/template_default/common/html_header.php

    If you look, you'll see comments like:
    • load all template-specific stylesheets, named like "style*.css", alphabetically
    • load stylesheets on a per-page/per-language/per-product/per-manufacturer/per-category basis. Concept by Juxi Zoza.


    Hope that helps. Scott

  2. #12
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: Home Page Generation

    Please do not start a new thread to continue an existing topic. Thanks. Your threads have been merged together.
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

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

    Default Re: Home Page Generation - cont..

    The PHP code, when building the HTML output, does a set of lookups and decides which stylesheets to apply to the current page. There is no reason to tinker with this or try to understand the mechanics unless you are a skilled PHP coder. The order and logic of which stylesheets are called is useful to know, and described in forum posts and the wiki, and in /template_default/css/CSS_read_me.

    The HTML calls the stylesheets using the <link rel="stylesheet" ... > tag in the head of the output.

    After this, there is no need for elements to call a stylesheet; that is automatic by the structure of HTML.
    Last edited by gjh42; 21 Jan 2008 at 07:35 PM.

  4. #14
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: Home Page Generation - cont..

    Quote Originally Posted by lplatz View Post
    Perhaps this question is more difficult to answer than simply providing a file reference. What file or function calls the stylesheet.css file? I looked w/in the index page, but did not find a reference. I'm average on reading .php, so perhaps I overlooked the reference.

    I asked this question in a previous post and was replied to with a question as to why I wanted to this information. My request is part of my gaining a better overall understanding of the structure and function of this tool.

    Thanks in advance
    The Main page content is all incorporated within a Table layout. Zen Cart has not yet reached the point where fluid CSS can be used for the whole layout. That will change in time but for now, one works with CSS for Layout of the Header & Footer and within the Table code for Layout Sideboxes & Main content. The main 'stylesheet.css' applies to all pages.

    To best answer your question(s) regarding custom or customizing Templates at this time, I would direct you to the tutorials/FAQ link at the top of this page. Use the keyword 'overrides' to start your search and go from there.

  5. #15
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Re: Home Page Generation

    I have websites built for ZC that use all pure CSS except certain places where I think table is a better choice (such as the shopping cart page, where I think using table to list products in cart is a better choice). So overall you find 1 table at max on any page.

    The conclusion? It's easy to build ZC sites that using css only.
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

  6. #16
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: Home Page Generation

    yellow1912, you made the same statement in other Thread and I had asked you to provide a URL of a site using that method and a current or fairly current, version of Zen Cart.

    Don't believe you replied so I bring it to your attention again. I believe not only I, but others also would be interested in seeing this.

  7. #17
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: Home Page Generation

    I too would like to see it - Have you done it with no loss of functionality from the Admin?

    To the OP- There is only one table in the main template - and it is there to control the side columns without having to resort to a bunch of awful hacks. The only other tables are for tabular data and are built on the fly with the code.
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. home page text and footer do not show on home page
    By terrancesmith98 in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 27 Oct 2010, 01:45 AM
  2. Help connecting my flash home page to my shop home page...
    By BenhamCollectibles in forum General Questions
    Replies: 19
    Last Post: 8 Dec 2009, 09:36 PM
  3. Auto redirect from home page to zen cart home
    By gizmo_girl in forum Basic Configuration
    Replies: 5
    Last Post: 4 Nov 2008, 03:46 PM
  4. My Home Page is not the original home page- Help!
    By Pet Herbal Remedies in forum General Questions
    Replies: 4
    Last Post: 22 Aug 2008, 11:15 PM
  5. Another request for a home page link to my real home page
    By thesoundsmith in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 19 Jun 2008, 09:46 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