Results 1 to 7 of 7
  1. #1
    Join Date
    Jun 2006
    Posts
    75
    Plugin Contributions
    0

    Default split category links and sub links

    We have a problem with the div's & spans that rule the main product category links and the sub links.......
    The problem is this:

    We need a fixed width white background "box" for ALL main categories BUT
    no background color for the sub product categorie...

    Tried all things but when diving more and more into the code of categories.tpl i figured it is kind of impossible for there is only one div ruling ALL these list-items... main or sub cat. does not matter. Having a seperate SPAN class or A class does not help for then we cannot give them a fixed with somehow.

    Anyone experience with this one??
    Please send me a private mail i can show you an url...

    Thanks a lot!!!

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

    Default Re: split category links and sub links

    try finding or adding a.category-top for the main top level cat

    and a.category-products for the sub-cats into the stylesheet

  3. #3
    Join Date
    Jun 2006
    Posts
    75
    Plugin Contributions
    0

    Default Re: split category links and sub links

    Thanks for your reply

    Adding or changing a.category-top ... et cet does not change anything unfortunately.

    We have now:
    .category-top {
    background-color: #ffffff;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 5px;
    padding-right: 60px;
    }

    .category-subs {
    background-color: #ffffff;

    }

    we can adjust the width of .category-top only by changing the padding-right...
    but then again: these categories are not diplayed with the same width
    (offcourse )

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

    Default Re: split category links and sub links

    Your entry of
    Code:
    .category-subs {
    background-color: #ffffff;
    }
    Should be:
    Code:
    .category-products {
    background-color: #ffffff;
    }
    for the correct class if you are using ZenCart ver 1.3.x

    I actually do not understand what it is that you are seeking nor what is not displaying correctly from your post...

    Have a url?

  5. #5
    Join Date
    Jun 2006
    Posts
    75
    Plugin Contributions
    0

    Default Re: split category links and sub links

    This works... it comes down to divining BLOCKS instead of inline elements

    PHP 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-top1px solid #EFEDEE;
        
    background-color#FFFFFF;
    }

    .
    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 {
        
    displayblock;
        
    background-color#EFEDEE;
        
    border-top2px solid #EFEDEE;
        
    padding4px;
        
    }

    .
    betterCategories a,.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#FFFFFF;
        
    }

     .
    betterCategories a:active {
         
    padding-left10px;    
     }
    .
    category-subs-parent {
        
    background-color#FFFFFF;
        
    padding-top4px;
        
    padding-bottom4px;
        
    padding-left0px;
        
    padding-right30px;
        
    font-weightbold;
    }
    .
    category-subs-selected {
    padding-left22px;
    font-weightbold;
    }
        
    /*
    .category-subs-selected, .category-subs-selected a:hover {
        font-weight: bold;
        text-decoration: none;
    }
    */
    A.category-topA.category-top:visited {
        
    background-color#FFFFFF;
        
    font-weightnormal;
    }

    A.category-links {
    background-color#FFFFFF;
    }
    A.category-subsA.category-productsA.category-subs:visitedA.category-products:visited {
    background-color#EFEDEE;
    font-weightnormal;


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

    Default Re: split category links and sub links

    AhHah,

    You did not state that you were using Better Categories in your initial Post...

    Glad you got it sorted

  7. #7
    Join Date
    Jun 2006
    Posts
    75
    Plugin Contributions
    0

    Default Re: split category links and sub links

    well.. we took that later as a rescue :)

 

 

Similar Threads

  1. Remove category, sub category, big links silly stock images....
    By joyjoy in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 10 Sep 2010, 10:31 AM
  2. move sub-category links to top
    By jgardner in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 24 Jul 2008, 04:20 AM
  3. Removing category image links and text links from the HOME page
    By EddieMac in forum Basic Configuration
    Replies: 2
    Last Post: 24 Apr 2008, 02:53 PM
  4. Moving sub category links
    By HandcraftedUK in forum General Questions
    Replies: 3
    Last Post: 21 Oct 2006, 02: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