Forums / Templates, Stylesheets, Page Layout / Change the link colour of selected category...

Change the link colour of selected category...

Locked

Views: 1,715

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
28 May 2007, 8:44 AM
#1
alex_clarke avatar

alex_clarke

Totally Zenned

Join Date:
Mar 2006
Posts:
909
Plugin Contributions:
1

Change the link colour of selected category...

Ok, I've done this before and cannot remember how!

I'm trying to change the colour of the selected category in the categories sidebox.

For example, all of the category links are grey. I would like the selected category link to appear pink.

Anyone know the solution?

My Contributions: Zen Lightbox | Best Sellers Reloaded

28 May 2007, 11:29 AM
#2
thepatch avatar

thepatch

Zen Follower

Join Date:
Sep 2006
Posts:
281
Plugin Contributions:
0

Re: Change the link colour of selected category...

Alex Clarke:

Ok, I've done this before and cannot remember how!

I'm trying to change the colour of the selected category in the categories sidebox.

For example, all of the category links are grey. I would like the selected category link to appear pink.

Anyone know the solution?

All of this is in the stylesheet.css;

/* 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 */

Change what ye like, save changes, voila!

Samuel Turnmire
co-Founder
geekFoundry

28 May 2007, 1:57 PM
#3
alex_clarke avatar

alex_clarke

Totally Zenned

Join Date:
Mar 2006
Posts:
909
Plugin Contributions:
1

Re: Change the link colour of selected category...

Thanks for that!

I was actually using a copy of the template_default stylesheet, which didn't contain that code. :|

Thanks again for the help. :)

My Contributions: Zen Lightbox | Best Sellers Reloaded

10 Jul 2007, 8:36 AM
#4
miweb avatar

miweb

New Zenner

Join Date:
Jul 2007
Posts:
31
Plugin Contributions:
0

Re: Change the link colour of selected category...

....anyone know how to make categories menu with a diferent colour menu. For example: Category 1 will be red, Category 2 will be blue etc.
Any sugestions!

12 Jul 2007, 6:40 AM
#5
alex_clarke avatar

alex_clarke

Totally Zenned

Join Date:
Mar 2006
Posts:
909
Plugin Contributions:
1

Re: Change the link colour of selected category...

This is something that I'd like to be able to do too! In fact I was thinking about it last night. :|

If I find out how to do this I'll post here.

My Contributions: Zen Lightbox | Best Sellers Reloaded

12 Jul 2007, 7:09 AM
#6
gjh42 avatar

gjh42

Black Belt

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

Re: Change the link colour of selected category...

tpl_categories.php has directions for this in the comments at the top of the file.

Categories Dressing has more extensive directions, and some example code.