Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Customizing the Look of Your Shop / Templates, Stylesheets, Page Layout / How can I change the look of the navigation side bar, to look like this

How can I change the look of the navigation side bar, to look like this

Locked

Started by paha on 10 Mar 2008, 7:33 PM · Views: 3,960

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
10 Mar 2008, 7:33 PM
#1
paha avatar

paha

Zen Follower

Join Date:
Mar 2008
Posts:
100
Plugin Contributions:
0

Post #1 by paha

Hello

How can I change the look of the navigation side bar, to look like this:

with different colors in each link

10 Mar 2008, 7:51 PM
#2
kobra avatar

kobra

Black Belt

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

Post #2 by kobra

You will have to create images for this

Zen-Venom Get Bitten

10 Mar 2008, 8:04 PM
#3
paha avatar

paha

Zen Follower

Join Date:
Mar 2008
Posts:
100
Plugin Contributions:
0

Post #3 by paha

ok, no problem.

and then, what should I do with them?

11 Mar 2008, 2:34 AM
#4
kobra avatar

kobra

Black Belt

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

Post #4 by kobra

Apply the image as a background image to the element you want it in with css

Zen-Venom Get Bitten

11 Mar 2008, 7:34 PM
#5
paha avatar

paha

Zen Follower

Join Date:
Mar 2008
Posts:
100
Plugin Contributions:
0

Post #5 by paha

kobra:

Apply the image as a background image to the element you want it in with css

Interesting Idea,

But I just see that if the links of categories increase or decrease, the image will not feet corectly.

is nost pocible to add an image per link, so it is independet color for each link, category? so if I add a categorie or product the link image or background color will appear with it, or disappear if the category is deleted

:mellow:

11 Mar 2008, 7:40 PM
#6
kobra avatar

kobra

Black Belt

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

Post #6 by kobra

is nost pocible to add an image per link, so it is independet color for each link, category? so if I add a categorie or product the link image or background color will appear with it, or disappear if the category is deleted
Not possible as the tag for these is the same

Zen-Venom Get Bitten

11 Mar 2008, 8:21 PM
#7
gjh42 avatar

gjh42

Black Belt

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

Post #7 by gjh42

Categories Dressing has features and information that can help you achieve this.

One option is simply using an ability built into tpl_categories.php for per-category styling (instructions given in the file's comments, and expanded on in the Cat Dressing readme.txt).

11 Mar 2008, 8:34 PM
#8
gjh42 avatar

gjh42

Black Belt

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

Post #8 by gjh42

A close look at your example says that your best bet might be to make one background image for the whole box, and have it positioned relative to the bottom of the box. Then if a category goes away, the top color will move up & out of sight. Make the image with an extra color band at the top, and if you get another category, the whole image will move down to show the previously hidden color.

12 Mar 2008, 3:11 AM
#9
paha avatar

paha

Zen Follower

Join Date:
Mar 2008
Posts:
100
Plugin Contributions:
0

Post #9 by paha

gjh42:

A close look at your example says that your best bet might be to make one background image for the whole box, and have it positioned relative to the bottom of the box. Then if a category goes away, the top color will move up & out of sight. Make the image with an extra color band at the top, and if you get another category, the whole image will move down to show the previously hidden color.

Ok I will do it

where I need to add the image to appear in the side box categories products?

in a css ?

12 Mar 2008, 3:45 AM
#10
gjh42 avatar

gjh42

Black Belt

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

Post #10 by gjh42

Yes, you will call the background image in stylesheet.css.

Given the design in your example, I would say to make the main bg image include the round corners at the bottom, and make a top image that has the black rounded corners but otherwise transparent.

 ________
 /        \   top image


  _______
 /        \
| _______ |  bottom image
 /        \
| _______ |
 /        \
| _______ |
 /        \
| _______ |
 /        \
|          |
 \_______/ 

Add to your stylesheet:```
#categoriesHeading {display: none;}

#categories {
background: url(../images/catbottombg.gif) bottom center;
}

#categoriesContent {
background: url(../images/cattopbg.gif) top center;
}