Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2012
    Posts
    3
    Plugin Contributions
    0

    Default Mod to Template tpl_categories.php

    I am using the free template:

    Template Author :
    Design by: IDEASGirl

    Template Version : Version 1.0 for ZC 1.3.8a

    Template Description
    Combination of pale yellow and maroon (#FDF4D7 & #550000). Just need to change your logo image, and you are ready to go. Bettercategories buttons already included... Enjoy!

    ZC = 1.3.9h, stock install, no mods (except for site logo etc)
    Prob started = always

    What I am trying to accomplish is this - when you visit my site there is a links bar that runs thru the middle of the page just under the banner, there I have all the main categories! When you click on a Main Category from that bar it does what its supposed to but, in the categories box on the left side of the page (sideboxes) instead of it showing all the main categories, sub categories and New, Featured, All etc. *** I want it to show only the subcategories. I have been racking my brain looking thru the php in the tpl file listed in the title but I cant figure out how to make it do this. Again I want only the sub categories to be shown there not the main categories when a main category is clicked, they can show if not main category has been selected

    I hope I have provided as much info as is necessary here if you any questions please let me know! Thank you...

    Assuming all of you dont have every template file sitting there ready to go I saved a txt version http://k0kad.com/tpl_categories.txt here so you can see the code there :)
    Last edited by chadrt; 9 Jan 2012 at 12:42 PM. Reason: more info

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

    Default Re: Mod to Template tpl_categories.php

    Without being able to see your Zen Cart in operation, I can suggest adding to your stylesheet

    #categories .category-top {display: none;}

    This will hide any top categories in the categories sidebox without touching the categories-tabs.

    If this does not do it, we will have to see the site live. If you have BetterCategories in operation as the template notes suggest, the sidebox id may be different.

    You can turn off featured, new, etc. in admin > Configuration > Layout Settings.
    Last edited by gjh42; 9 Jan 2012 at 04:04 PM.

  3. #3
    Join Date
    Jan 2012
    Posts
    3
    Plugin Contributions
    0

    Default Re: Mod to Template tpl_categories.php

    Quote Originally Posted by gjh42 View Post
    Without being able to see your Zen Cart in operation, I can suggest adding to your stylesheet

    #categories .category-top {display: none;}
    Code:
    /*
    BetterCategoriesEzInfo v1.3.0.2 added  2006-06-22  gilby
    Updated to v1.3.5   2006-09-19  gilby
    */
    
    .betterCategories, .betterDocuments, .betterEzpages,
    .betterInformation, .betterMoreinformation, .betterBestsellers {
            border-top: 1px solid #F6E5C4;
            border-bottom: 1px solid #D4BA8E;
            border-left: 1px solid #F6E5C4;
            border-right: 2px solid #D4BA8E;
    }
    
    .betterCategories a, .betterCategories a:visited,
    .betterDocuments a, .betterDocuments a:visited,
    .betterEzpages a, .betterEzpages a:visited,
    .betterInformation a, .betterInformation a:visited,
    .betterMoreinformation a, .betterMoreinformation a:visited,
    .betterBestsellers a, .betterBestsellers a:visited {
            display: block;
            background-color: #F7F1DC;
            border-top: 2px solid #F6E5C4;
            padding: 5px;
    }
    
    .betterCategories a:hover, .betterCategories a:active,
    .betterDocuments a:hover, .betterDocuments a:active,
    .betterEzpages a:hover, .betterEzpages a:active,
    .betterInformation a:hover, .betterInformation a:active,
    .betterMoreinformation a:hover, .betterMoreinformation a:active,
    .betterBestsellers a:hover, .betterBestsellers a:active {
            background-color: #550000;
            color: #FDF4D7;
    }
    
    /*
    .category-subs-selected, .category-subs-selected a:hover {
            font-weight: bold;
            text-decoration: none;
    }
    */
    That is the better categories style sheet

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

    Default Re: Mod to Template tpl_categories.php

    Then probably
    .betterCategories .category-top {display: none;}
    would work; the stylesheet is far less useful than seeing your site live.

 

 

Similar Threads

  1. put "categories sidebox" categories into <ul> ? edit tpl_categories.php ?
    By phillycheese123 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 3 Sep 2012, 06:12 AM
  2. tpl_categories.php : any way to show all subcategories site-wide?
    By inthecomputer in forum Templates, Stylesheets, Page Layout
    Replies: 11
    Last Post: 18 Nov 2008, 11:41 PM
  3. override tpl_categories.php on main_page only
    By k4satin in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 6 Oct 2008, 09:37 AM
  4. Getting category ID in tpl_categories.php
    By tslav in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 12 Aug 2008, 07:21 AM
  5. Coding css changes into 2 category 3 subcategory tpl_categories.php
    By dvasdekis in forum Templates, Stylesheets, Page Layout
    Replies: 13
    Last Post: 2 Sep 2007, 10:29 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