Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    May 2005
    Location
    Western MA, USA
    Posts
    604
    Plugin Contributions
    6

    CSS over ride on index_default

    So I probably could not find it but, I could use a little help w/ the css over ride.
    I am working on a site w/ ZC 1.3.5, and I just cant figure out what to name my over riding .css file. I want to change what is displayed for the index_default, but not what is displayed when I am displaying product categories (index_product_display).
    I have called the file, various things but am still having trouble w/ the naming conventions.
    any one got any Ideas?

    JOsh

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: CSS over ride on index_default

    You have created a folder and named it...have you copied a template_info.php file to it and edited it to reflect your template name and then activated it in the admin > tools > template Selection...other things to install

    See instructions here Create Custom Template
    Zen-Venom Get Bitten

  3. #3
    Join Date
    May 2005
    Location
    Western MA, USA
    Posts
    604
    Plugin Contributions
    6

    Default Re: CSS over ride on index_default

    Quote Originally Posted by kobra View Post
    You have created a folder and named it...have you copied a template_info.php file to it and edited it to reflect your template name and then activated it in the admin > tools > template Selection...other things to install

    See instructions here Create Custom Template
    yes I have already created custom template. it is the css over ride naming conventions I need help w/.

    JOsh

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

    Default Re: CSS over ride on index_default

    Josh - it's been my experience that the index is the hardest to use over rides on because a lot of Zen pages use it even though they aren't index pages.

    In my case the ony way I got the INDEX ONLY to over write was to force zen to call a second custom template for all pages other than index - there is a thread here on how to edit your init_templates to do so and it works great !


    Hope that helps.
    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.

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

    Default Re: CSS over ride on index_default

    As of v1.3.5, you can call it 'index_home.css' and it will only affect the "home" page.

    A minor improvement was made in 1.3.6 so that it properly detects home page when manufacturers are selected from pulldown sidebox.
    .

    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.

  6. #6
    Join Date
    May 2005
    Location
    Western MA, USA
    Posts
    604
    Plugin Contributions
    6

    Default Re: CSS over ride on index_default

    Quote Originally Posted by DrByte View Post
    As of v1.3.5, you can call it 'index_home.css' and it will only affect the "home" page.

    A minor improvement was made in 1.3.6 so that it properly detects home page when manufacturers are selected from pulldown sidebox.
    Umm, I have changed the css name to index_home.css it is still affecting the pages listing the index_product listings.
    JOsh

  7. #7
    Join Date
    May 2005
    Location
    Western MA, USA
    Posts
    604
    Plugin Contributions
    6

    Default Re: CSS over ride on index_default

    really what I am trying to do is remove the bredacrumbnav from the main page, by setting it to display none.

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

    Default Re: CSS over ride on index_default

    Quote Originally Posted by ########################## View Post
    really what I am trying to do is remove the bredacrumbnav from the main page, by setting it to display none.
    To simply remove the breadcrumb from the home page, you could use the stylesheet, or you could simply add another condition in the PHP code of tpl_main_page for your custom template

    /includes/templates/YOURTEMPLATE/common/tpl_main_page.php
    Code:
    <!-- bof  breadcrumb -->
    <?php if (DEFINE_BREADCRUMB_STATUS == '1') { ?>
        <div id="navBreadCrumb"><?php echo $breadcrumb->trail(BREAD_CRUMBS_SEPARATOR); ?></div>
    <?php } ?>
    <!-- eof breadcrumb -->
    Change the line with the IF statement to this:
    Code:
    <?php if (DEFINE_BREADCRUMB_STATUS == '1' && !$this_is_home_page) { ?>
    .

    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.

  9. #9
    Join Date
    May 2005
    Location
    Western MA, USA
    Posts
    604
    Plugin Contributions
    6

    Default Re: CSS over ride on index_default

    Quote Originally Posted by DrByte View Post
    To simply remove the breadcrumb from the home page, you could use the stylesheet, or you could simply add another condition in the PHP code of tpl_main_page for your custom template

    /includes/templates/YOURTEMPLATE/common/tpl_main_page.php
    Code:
    <!-- bof  breadcrumb -->
    <?php if (DEFINE_BREADCRUMB_STATUS == '1') { ?>
        <div id="navBreadCrumb"><?php echo $breadcrumb->trail(BREAD_CRUMBS_SEPARATOR); ?></div>
    <?php } ?>
    <!-- eof breadcrumb -->
    Change the line with the IF statement to this:
    Code:
    <?php if (DEFINE_BREADCRUMB_STATUS == '1' && !$this_is_home_page) { ?>
    I was just hopng to do it w/ styles but I may have to do it this way eh, well I will break and do it the old fassioned way.
    JOsh

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

    Default Re: CSS over ride on index_default

    I just uploaded a new "index_home.css" file to my custom template folder, containing this:
    Code:
    body {
    	background-color: orange;
    	}
    
    #navBreadCrumb {display: none;}
    ... and it worked fine (the "orange" was to test something else)
    The breadcrumb doesn't show on the home page now.
    .

    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.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. check out css over ride not working
    By sanguisdesign in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 17 Jul 2007, 10:28 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