Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2008
    Posts
    23
    Plugin Contributions
    0

    Default Category & Subcat display

    Hi there,
    please see http://www.dirtyweekender.com/
    this is a highly customized template, however i'm having trouble correcting the category (left grey buttons) display.
    if you click on category 3, the subcats list, however the grey boxes are all different sizes?

    what styesheet to i need to modify, and what css tag? i can't seem to work it out...

    regards,

    alex

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

    Default Re: Category & Subcat display

    You have styling scattered around, and partially mangled declarations in places. It looks like you have played with tpl_categories.php, too (<span class="category-not-selectedRARGH">) which invalidates some of the CSS that should apply.

    High in your stylesheet.css you have this:

    .category-top-text {;width:147px;border-bottom:1px solid #fff;}
    a.category-top-text {;font-size:9px;padding-top:2px;font-weight:bold}

    which gives top cats a fixed width, but does not help subcats.
    Move those declarations to one central categories area like stylesheet_categories_dressingold.css, and do some cleaning up. Eliminate declarations you never want to use and fix errors like
    Code:
    /* bullet for top categories & links:*/
    a.category-top-text .category-not-selected, a.category-top-text .category-subs-selected, #categories a.category-links {
        display: nome; <---------------------------------------------
        list-style: disc inside url(../images/bullet1.gif);
        }
    which if correct would hide nearly all of your categories. If you don't want list markers, delete all declarations where they are set.

    You will end up with a very simple set of active declarations.
    Code:
    /*display all cat box links as block*/
    #categories a {
        background-image:  url(../images/bkbut.gif);  
        background-repeat: repeat-x; 
        display: block;	
        height: 18px;
        color: #000000;
        padding: 0em 3em;
        float: left;
        margin-left: 10px;
        }
    
    #categories a:hover {
        text-decoration: underline;
        }
    
    a.category-top-text {
        width: 147px;
        border-bottom: 1px solid #fff;
        font-size: 9px;
        padding-top: 2px;
        font-weight: bold
        }
    
    a.category-subs-text, a.category-products-text  {
        width:147px;
        border-bottom:1px solid #fff;
        font-size:9px;
        padding-top:2px;
        }
    
    SPAN.category-subs-selected {
        font-weight: bold;
        }
    Adjust to taste.
    Last edited by gjh42; 24 Feb 2008 at 08:04 PM.

 

 

Similar Threads

  1. Removing Category Heading from SubCat page?
    By dropbop in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 10 Sep 2009, 09:03 PM
  2. Trying To Change Cat/Subcat Display
    By scottdev in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 20 Jul 2009, 04:16 PM
  3. Display category heading & sub-category
    By g_force in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 30 Jun 2009, 05:40 PM
  4. Hiding subcat from category sidebox
    By Tim M in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 5 Jan 2009, 11:51 PM
  5. Category heading on all cat /subcat pages?
    By needs_a_nap in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 11 Sep 2007, 04:26 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