-
Re: Categories Dressing
Limelites -
I have found that your categories lists have the corrrect number of closing </ul> tags; it is only the opening <ul> at the beginning of the box that is missing.
The only ways I can think of that that could happen are for the first category cPath to have negative 1 underscores (i.e. less than 0 of them), which is not possible; or for a line in tpl_categories.php to have been changed from its default.
At the top of the file, you should have
PHP Code:
$content = "";
$prev_cat_depth = -1;
What is the value of $prev_cat_depth in your copy?
Otherwise, I see that chcategories is specifically built to use the identical information and template file as the standard, so replacing the standard tpl_categories.php with the Cat Dressing version should not cause any problems, and simply changing the stylesheet #categories tags to #chcategories really should work perfectly.
-
Re: Categories Dressing
Glen, I have a value of 0 which I've now changed to -1
It's definitely taken an effect on the site.... yikes.... now I need to figure out what's going on there :-)
-
Re: Categories Dressing
1st impressions.......... 100% perfect and 100% integrated to UCT!! Well done Glenn!!
-
Re: Categories Dressing
OK, so it's working a treat... maybe you can help me with my top level categories, womenswear, menswear and childrenswear?
When they're not selected and their sub cats are not active, the top categories seem to be aligned right instead of aligned left (that's in FF.... in IE7 the top cats are aligned the same as their sub cats)? Which part of the stylesheet needs changed to rectify this?
Also, how would I make the top cats (in their unselected and non-active states) align left and be font bold?
-
Re: Categories Dressing
It appears that you have solved the alignment issue, and I presume the bullets are now the way you want them... at any rate, everything looks intentional and coordinated.
To get the topcategories bold, you can add font-weight: bold;, and then font-weight: normal; to the subcats to reset them. You can do the same to the links if you want them not bold.
Code:
#chcategories ul a {/*top categories*/
display: list-item;
list-style: disc inside url(../images/bullet1.gif);/*change to list-style: none; to remove bullet*/
background: no-repeat;
border: none;
margin: 0;
padding: 0;
font-weight: bold;
}
#chcategories ul ul {/*subcategory lists*/
list-style: none;
background: #ffffff;
border: none;
margin: 0 0 0.4em 0;
}
#chcategories ul ul a {/*subcategories*/
display: list-item;
list-style: none; /*circle inside url(../images/bullet1.gif);/*change to list-style: none; to remove bullet*/
background: #ffffff;
border: none;
margin: 0;
padding: 0;
font-weight: normal;
}
#chcategories li a.category-links {font-weight: normal;}
-
Re: Categories Dressing
Thank you Glen, worked a real treat...
Your help as always has been priceless.
-
Re: Categories Dressing
Just one little niggle, no biggie, but FF is not picking up on bullet1.gif for the sub cats whereas IE is..... any idea why that may be?
-
Re: Categories Dressing
I didn't know that you wanted the bullets for subcats. Let me take a look at your stylesheet and source... back in a few.
-
Re: Categories Dressing
From your copy of stylesheet_categories_dressing.css... do you see the problem?
Code:
#chcategories ul ul a {/*subcategories*/
display: list-item;
list-style: none; /*circle inside url(../images/bullet1.gif);/*change to list-style: none; to remove bullet*/
background: #ffffff;
border: none;
margin: 0;
padding: 0;
font-weight: normal;
}
-
Re: Categories Dressing
Ahhhh I see that now :-) Perfect....
Only one tiny thing I'd change, not sure if it's possible, but it seems to think that category Lingerie is a top level category and it makes Lingerie bold accordingly....
I think this may be because Lingerie has sub categories, whereas all the other 2nd level cats just have products.
Is there a way to make Lingerie font-weight normal?