Forums / Templates, Stylesheets, Page Layout / Changing header grahics for each product catgegory?

Changing header grahics for each product catgegory?

Locked

Started by atracksler on 21 Sep 2006, 1:42 AM · Views: 1,460

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
21 Sep 2006, 1:42 AM
#1
atracksler avatar

atracksler

New Zenner

Join Date:
Jan 2006
Posts:
51
Plugin Contributions:
0

Changing header grahics for each product catgegory?

How can I have a different header graphic for each prodcut category?

Thanks, ad

21 Sep 2006, 4:53 AM
#2
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Changing header grahics for each product catgegory?

If you are using version 1.3.+ you can create a stylesheet for each category as follows:

c_??_##.css where ?? is ther category number.

Add only the information you need for what you want to do in the stylesheet.

#logoWrapper {
background: url(../images/YOUR_HEADER_IMAGE.???) no-repeat;
height: 90px;
width: 100%;}

Adjust the portions in red to your requirements.

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

8 Nov 2006, 10:54 AM
#3
ellivir avatar

ellivir

Zen Follower

Join Date:
Sep 2005
Posts:
444
Plugin Contributions:
0

Re: Changing header grahics for each product catgegory?

clydejones:

If you are using version 1.3.+ you can create a stylesheet for each category as follows:

c_??_##.css where ?? is ther category number.

Add only the information you need for what you want to do in the stylesheet.

#logoWrapper {
background: url(../images/YOUR_HEADER_IMAGE.???) no-repeat;
height: 90px;
width: 100%;}

> 
> Adjust the portions in red to your requirements.

This is great function! :)
I made a stylesheet called c_2.css and I get the category headers and sideboxes different color than in default stylesheet now. Just like I wanted.
But if I want the subcategories, like 2_58 to follow the same stylesheet, do I really need to make a stylesheet for each category or could I make the system to understand that it should take the look of category number 2 since it is a subcategory under it?

Thanks for the info!

Elli

I may be blond but at least I found Zen.

8 Nov 2006, 3:14 PM
#4
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Changing header grahics for each product catgegory?

Right now, you'll need to make a separate stylesheet for each sub-category.

Maybe a future version will include a way to do this.

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

8 Nov 2006, 11:31 PM
#5
ellivir avatar

ellivir

Zen Follower

Join Date:
Sep 2005
Posts:
444
Plugin Contributions:
0

Re: Changing header grahics for each product catgegory?

clydejones:

Right now, you'll need to make a separate stylesheet for each sub-category.

Maybe a future version will include a way to do this.

Ou, I have like 15 different sub-categories in each and people updating the page may make more and then the colouring won't work for those ones then... so, there's no wildcard, like *, that I could use to make the all subcategories option?

Elli

I may be blond but at least I found Zen.

9 Nov 2006, 12:28 AM
#6
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Changing header grahics for each product catgegory?

Sorry, not that I know of.

Maybe one of the Dev's has an answer.

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.