If this is your first visit, check our documentation. To post, register or login.
Forums / Templates, Stylesheets, Page Layout / Making Only One Sidebox Look Different

Making Only One Sidebox Look Different

Started by xena on 23 Sep 2012, 10:14 AM · Views: 915

Results 1 to 7 of 7
23 Sep 2012, 10:14 AM
#1
xena avatar

xena

Zen Follower

Join Date:
Jun 2004
Location:
Northern Rivers, NSW
Posts:
143
Plugin Contributions:
0

Making Only One Sidebox Look Different

I am trying to do something that I'm sure CAN be done, I'm just a bit stuck on the last part.
I'm trying to make my Categories sidebox look completely different from all the other side boxes. Now I've got the background and the footer (using CSS) working just fine by changing the class name in tpl_categories and adding that class to my stylesheet.
The problem/s I'm now facing are, how do I edit the heading and how do I edit the font colours of both the heading and the links? I want to add a background image behind the heading (did it for the footer of the sidebox using a background image set to bottom position) but I can't for the life of me figure out where to change the class in a template file so the category header can be it's own class. Same for the header font and container links. As the category sidebox is going to be almost black, I need the heading and links to be white, whereas all the other headings and link in the sideboxes need to be black.

Convoluted much lol
Any help would be greatly appreciated :)

23 Sep 2012, 1:20 PM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Making Only One Sidebox Look Different

Search the Plugins for categories dressing. Also, Zencart uses a standard method for assigning class and id names, even though not all are included in the default stylesheet, so if you want to change the Categories sidebox, you would look for/add #categories in/to the stylesheet, and for the heading, #categoriesHeading.

As always, installing the Firefox browser and the Firebug or Web Developer plugin for Firefox make finding stuff like this easy.

23 Sep 2012, 3:10 PM
#3
xena avatar

xena

Zen Follower

Join Date:
Jun 2004
Location:
Northern Rivers, NSW
Posts:
143
Plugin Contributions:
0

Re: Making Only One Sidebox Look Different

Thanks for the info :) #categoriesHeading worked perfectly to add the background image to the head of the Category tab.
I did try using Firebug, but because the categories tag wasn't in the css it wasn't showing up rolls eyes Always the little things that make a whole project just stop.

Still having issues trying to get the links a different colour, but I had downloaded Categories Dressings the other day so I'll give it a whirl and see if that solves my problem.

Thanks again for your help :smile:

23 Sep 2012, 3:32 PM
#4
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Making Only One Sidebox Look Different

Here are your category box links rules:

/* categories box parent and child categories /
A.category-top, A.category-top:visited {
color: #008000;
text-decoration: none;
}
A.category-links, A.category-links:visited {
color: #004080;
text-decoration: none;
}
A.category-subs, A.category-products, A.category-subs:visited, A.category-products:visited {
color: #FF0000;
text-decoration: none;
}
SPAN.category-subs-parent {
font-weight: bold;
}
SPAN.category-subs-selected {
font-weight: bold;
}
/
end categories box links */

23 Sep 2012, 4:04 PM
#5
xena avatar

xena

Zen Follower

Join Date:
Jun 2004
Location:
Northern Rivers, NSW
Posts:
143
Plugin Contributions:
0

Re: Making Only One Sidebox Look Different

You are now officially my hero ... and have saved me from going bald :smile: I threw in a few changes ...
/* categories box parent and child categories /
A.category-top, A.category-top:visited {
color: #ffffff;
text-decoration: none;
}
A.category-links, A.category-links:visited {
color: #ffffff;
text-decoration: none;
}
A.category-top:hover {
color: #8E2A68;
text-decoration: none;
}
A.category-subs, A.category-products, A.category-subs:visited, A.category-products:visited {
color: #979797;
text-decoration: none;
}
A.category-products:hover {
color: #8E2A68;
text-decoration: none;
}
SPAN.category-subs-parent {
font-weight: bold;
}
SPAN.category-subs-selected {
font-weight: bold;
}
/
end categories box links */

... and it works perfectly. Thank you!!!

Thought I'd post my changes in case someone else finds this thread useful :)

23 Sep 2012, 4:21 PM
#6
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Re: Making Only One Sidebox Look Different

If you simply want to make each level of category/subcat look different, the stock rules tweaked will work just fine. Categories Dressing would be needed if you wanted to change individual categories.

23 Sep 2012, 4:31 PM
#7
xena avatar

xena

Zen Follower

Join Date:
Jun 2004
Location:
Northern Rivers, NSW
Posts:
143
Plugin Contributions:
0

Re: Making Only One Sidebox Look Different

I got it to look exactly right doing as Stevesh said above, but I like the look of Categories Dressing to do a few other things as well :)