Results 1 to 10 of 17

Hybrid View

  1. #1
    Join Date
    Aug 2005
    Location
    Trujillo Alto, Puerto Rico
    Posts
    1,550
    Plugin Contributions
    9

    Default CSS to Control Header

    On version 1.3.0.2 was posible to control the header by css and I succeed with the docs instructions:

    Code:
    c_??_??.css // changes to all info pages in a category
    On version 1.3.5 the instructions changed to:
    Code:
    c_??.css // changes to all info pages in a category
    The problem is that when you go to subcategories of that category, the header changes to the main one. On 1.3.0.2 didn't do that, and if you see the change from the css name makes sense, but I can't use the previous name because doesn't work.

    Sooooooooo, what's the solution?
    IDEAS Girl
    IDEAS Creative Group
    = Your image... our business!

  2. #2
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: CSS to Control Header

    It should still work according to the old instructions.

    Post a URL if it's not ...
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Aug 2005
    Location
    Trujillo Alto, Puerto Rico
    Posts
    1,550
    Plugin Contributions
    9

    Default Re: CSS to Control Header

    No, not working correctly. I even tried the code given with 1.3.5 on the 1.3.0.2 and it worked as well, but on 1.3.5 works only on top categories. I will send the url by PM.
    IDEAS Girl
    IDEAS Creative Group
    = Your image... our business!

  4. #4
    Join Date
    Aug 2005
    Location
    Trujillo Alto, Puerto Rico
    Posts
    1,550
    Plugin Contributions
    9

    Default Re: CSS to Control Header

    Any solution to this issue? I sent you a PM with the links DrByte...
    IDEAS Girl
    IDEAS Creative Group
    = Your image... our business!

  5. #5
    Join Date
    Aug 2005
    Location
    Trujillo Alto, Puerto Rico
    Posts
    1,550
    Plugin Contributions
    9

    Default Re: CSS to Control Header

    Hey! the pros on CSS here.... Can anyone of you track this little buggy down? I've test it on fresh install without modules, and doesn't work as it supposed.
    IDEAS Girl
    IDEAS Creative Group
    = Your image... our business!

  6. #6
    Join Date
    Jan 2005
    Location
    Lake Havasu, AZ
    Posts
    1,149
    Plugin Contributions
    0

    Default Re: CSS to Control Header

    Works fine for me on 3 different sites in development just as it is supposed to.

    Since you don't want to give a URL for anyone to troubleshoot that is the only thing I can say.
    When the world gets in my face I say Have A Nice Day.
    * I DO Think and I HAVE BEEN Zenned - therefore, I AM * I donate - do you?
    Custom Templates and Zen Services CRS Designs, Inc.

  7. #7
    Join Date
    Nov 2005
    Posts
    2
    Plugin Contributions
    0

    help question Re: CSS to Control Header - A Clue Please :)

    Has there been any answer to this query? I too am trying to create different headers for different categories. I have searched the forum and have found a quarter of an answer and need a little bit more of a clue. As I understand it, using:

    Code:
    c_??.css // changes to all info pages in a category
    I can create a stylesheet for each categories. Now is this c_categoryIDhere.css?What I don't understand, if someone could please clarify, is how do I get zencart to access this stylesheet?

    TIA
    ugh!

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

    Default Re: CSS to Control Header

    I can create a stylesheet for each categories. Now is this c_categoryIDhere.css?What I don't understand, if someone could please clarify, is how do I get zencart to access this stylesheet?
    Create your c_??.css and upload it to your server.

    Now whenever the page with that category number is called, Zen Cart will automatically access the stylesheet.

    This is the code in html_header.php that makes this possible.
    PHP Code:
    /**
     * load stylesheets on a per-page/per-language/per-product/per-manufacturer/per-category basis. Concept by Juxi Zoza.
     */
      
    $manufacturers_id = (isset($_GET['manufacturers_id'])) ? $_GET['manufacturers_id'] : '';
      
    $tmp_products_id = (isset($_GET['products_id'])) ? (int)$_GET['products_id'] : '';
      
    $tmp_pagename = ($this_is_home_page) ? 'index_home' $current_page_base;
      
    $sheets_array = array('/' $_SESSION['language'] . '_stylesheet'
                            
    '/' $tmp_pagename
                            
    '/' $_SESSION['language'] . '_' $tmp_pagename
                            
    '/c_' $cPath,
                            
    '/' $_SESSION['language'] . '_c_' $cPath,
                            
    '/m_' $manufacturers_id,
                            
    '/' $_SESSION['language'] . '_m_' . (int)$manufacturers_id
                            
    '/p_' $tmp_products_id,
                            
    '/' $_SESSION['language'] . '_p_' $tmp_products_id
                            
    );
      while(list (
    $key$value) = each($sheets_array)) {
        
    //echo "<!--looking for: $value-->\n";
        
    $perpagefile $template->get_template_dir('.css'DIR_WS_TEMPLATE$current_page_base'css') . $value '.css';
        if (
    file_exists($perpagefile)) echo '<link rel="stylesheet" type="text/css" href="' $perpagefile .'" />'."\n";
      }

    /** 

  9. #9
    Join Date
    Nov 2005
    Posts
    2
    Plugin Contributions
    0

    Default Re: CSS to Control Header

    Clyde!

    You are a doll (well, sorta) ;)! Will try this out asap. THANKS so much for the reply!
    ugh&#33;

 

 

Similar Threads

  1. v151 Link font size control in CSS
    By CabinetGuy in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 24 Apr 2014, 04:05 PM
  2. v151 Product Listing Control with CSS
    By cyberfolli in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 4 Sep 2013, 03:29 PM
  3. css control for ezpages? header graphics
    By atracksler in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 27 Sep 2009, 11:21 PM
  4. Admin Control Panel or CSS?
    By jaggers in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 16 Nov 2007, 06:33 AM
  5. want to reposition an image using css. what is css to control this?
    By what44 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 10 Nov 2007, 05:03 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