Zen Cart Logo
Forums / General Questions / Category Selector in Header

Category Selector in Header

Locked

Views: 917

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
16 Jan 2009, 2:02 PM
#1
amplexus avatar

amplexus

New Zenner

Join Date:
Jan 2008
Posts:
28
Plugin Contributions:
0

Category Selector in Header

I use the classic template for my store, and there is a header at the top with the search box, then below: a banner for the store, then below that a category selector with all the categories in this shade of gray. What I want to do is find the php file for that little category selector up near the top of the page and change the color to something other then gray for the text.

You can see the cart at: http://www.arrowheadshopping.com/

Any ideas?

16 Jan 2009, 2:19 PM
#2
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town & London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: Category Selector in Header

This is not controlled by PHP.

This is a CSS function and is controlled by stylesheets.

Currently, in your stylesheet, you have TWO declarations governing the colour of the links:

#navMain ul li a, #navSupp ul li a, #navCatTabs ul li a {
	text-decoration: none;
	padding: 0em 0.5em;
	margin: 0;
	color: #ffffff;
	white-space: nowrap;
	}

#navCatTabs ul li a {
	color: #9a9a9a;
	}

This bottom one OVER-RIDES the one above it.

The #9a9a9a is that GREY colour

Bright RED would be #FF0000

16 Jan 2009, 2:20 PM
#3
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town & London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: Category Selector in Header

PS:

Think about creating a custom template rather than use classic...

16 Jan 2009, 2:32 PM
#4
amplexus avatar

amplexus

New Zenner

Join Date:
Jan 2008
Posts:
28
Plugin Contributions:
0

Re: Category Selector in Header

Where would I find that style sheet?

And why do you suggest using a different template?

16 Jan 2009, 3:11 PM
#5
amplexus avatar

amplexus

New Zenner

Join Date:
Jan 2008
Posts:
28
Plugin Contributions:
0

Re: Category Selector in Header

I changed the style sheet for my custom template. It does not seem to have any effect on the links below the banner.

16 Jan 2009, 5:33 PM
#6
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town & London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: Category Selector in Header

I hope I don't sound patronising, but these questions you are asking are very fundamental, and have been addressed many times before.

Have you searched the forum for answers?

The book is also a very good idea for people who have a need to learn the fundamentals.

18 Jan 2009, 6:19 PM
#7
amplexus avatar

amplexus

New Zenner

Join Date:
Jan 2008
Posts:
28
Plugin Contributions:
0

Re: Category Selector in Header

I have the manual and have searched the forums of course, and have edited the CSS files that I think control the link colors. For one reason or another though, this has had no effect on the link colors. What reasons can you think of would cause this?

19 Jan 2009, 2:04 AM
#8
stevesh avatar

stevesh

Black Belt

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

Re: Category Selector in Header

You currently have two stylesheets, and both are being loaded, so they may be conflicting with one another. Renaming a stylesheet file won't keep it from being loaded if it's in the CSS folder and has a .css extension. Move the one you don't want to load to a different directory, or name it stylesheet.OLD.