Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / split category links and sub links

split category links and sub links

Locked

Views: 2,130

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
21 Sep 2006, 7:30 AM
#1
kookiewookie avatar

kookiewookie

New Zenner

Join Date:
Jun 2006
Posts:
75
Plugin Contributions:
0

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!!!

21 Sep 2006, 10:06 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

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

22 Sep 2006, 11:34 AM
#3
kookiewookie avatar

kookiewookie

New Zenner

Join Date:
Jun 2006
Posts:
75
Plugin Contributions:
0

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 )

22 Sep 2006, 2:47 PM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: split category links and sub links

Your entry of

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

Should be:

.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?

2 Oct 2006, 10:52 AM
#5
kookiewookie avatar

kookiewookie

New Zenner

Join Date:
Jun 2006
Posts:
75
Plugin Contributions:
0

Re: split category links and sub links

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

/*
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 #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 {
	display: block;
	background-color: #EFEDEE;
	border-top: 2px solid #EFEDEE;
	padding: 4px;
	
}

.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-left: 10px;	
 }
.category-subs-parent {
	background-color: #FFFFFF;
	padding-top: 4px;
	padding-bottom: 4px;
	padding-left: 0px;
	padding-right: 30px;
	font-weight: bold;
}
.category-subs-selected {
padding-left: 22px;
font-weight: bold;
}
	/*
.category-subs-selected, .category-subs-selected a:hover {
	font-weight: bold;
	text-decoration: none;
}
*/
A.category-top, A.category-top:visited {
	background-color: #FFFFFF;
	font-weight: normal;
}

A.category-links {
background-color: #FFFFFF;
}
A.category-subs, A.category-products, A.category-subs:visited, A.category-products:visited {
background-color: #EFEDEE;
font-weight: normal;
}
2 Oct 2006, 11:47 AM
#6
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

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

2 Oct 2006, 11:51 AM
#7
kookiewookie avatar

kookiewookie

New Zenner

Join Date:
Jun 2006
Posts:
75
Plugin Contributions:
0

Re: split category links and sub links

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