Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Customizing The SideBox

Customizing The SideBox

Locked

Views: 1,799

Results 1 to 12 of 12
This thread is locked. New replies are disabled.
20 Oct 2008, 3:18 PM
#1
dragon03kf avatar

dragon03kf

New Zenner

Join Date:
Oct 2008
Posts:
24
Plugin Contributions:
0

Customizing The SideBox

Hello everybody i need some help on customizing my category sidebox i need to achieve something like this i need pictures on top of certain links for example i want to put a picture that says "Men Fightwear" and then LINKS like Men's Tops and Mens Shorts but so far im having a lot of trouble i really dont know where to start :frusty: so if anybody of you can help me ill really appreciate it.

this is what i want to achieve
CATEGORIES
-PICTURE
*LINK
*LINK
-PICTURE
*LINK
*LINK
*LINK
-PICTURE
*LINK
*LINK

20 Oct 2008, 3:40 PM
#2
clydejones avatar

clydejones

Deceased

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

Re: Customizing The SideBox

dragon03kf:

Hello everybody i need some help on customizing my category sidebox i need to achieve something like this i need pictures on top of certain links for example i want to put a picture that says "Men Fightwear" and then LINKS like Men's Tops and Mens Shorts but so far im having a lot of trouble i really dont know where to start :frusty: so if anybody of you can help me ill really appreciate it.

this is what i want to achieve
CATEGORIES
-PICTURE
*LINK
*LINK
-PICTURE
*LINK
*LINK
*LINK
-PICTURE
*LINK
*LINK

Try this contribution avaliable in the downloads section
www.zen-cart.com/index.php?main_page=product_contrib_info&cPath=40_52&products_id=609

21 Oct 2008, 1:11 AM
#3
dragon03kf avatar

dragon03kf

New Zenner

Join Date:
Oct 2008
Posts:
24
Plugin Contributions:
0

Re: Customizing The SideBox

how do you use that cause i tried it last time and is kinda confusing lol so hopefully you can summarize like what php and css files do i need to edit and stuff i will be very thankful for the help

Thank You

21 Oct 2008, 3:16 AM
#4
gjh42 avatar

gjh42

Black Belt

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

Re: Customizing The SideBox

From the readme:

To add a non-linked heading in a specific place in the categories menu:

[Repeat the case ... break section for each category, changing the number to match:]
case '23': //replace number with your desired cPath
...
break;

[You want an image, so look at the bottom of the section]

If you want to use an image as a heading, name it like cathead23.gif (replacing the 23 with your cPath) and save in /your_template/images/

22 Oct 2008, 2:33 AM
#5
dragon03kf avatar

dragon03kf

New Zenner

Join Date:
Oct 2008
Posts:
24
Plugin Contributions:
0

Re: Customizing The SideBox

Thanks for the help you really made my day lol but right now im having a problem with FireFox it doesn't look the same and in IE it looks perfect if you could help me please.

Thank You

22 Oct 2008, 7:11 AM
#6
gjh42 avatar

gjh42

Black Belt

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

Re: Customizing The SideBox

I can't help without a link to see the current state of your site.

22 Oct 2008, 2:06 PM
#7
dragon03kf avatar

dragon03kf

New Zenner

Join Date:
Oct 2008
Posts:
24
Plugin Contributions:
0

Re: Customizing The SideBox

oh yeah sorry about that lol i though i had pasted it is this link

http://www.protectedpro.com/gomgi/

22 Oct 2008, 3:02 PM
#8
gjh42 avatar

gjh42

Black Belt

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

Re: Customizing The SideBox

You have limited the width of the headings without (as far as I can see) specifying how they should be placed, other than the container default which appears to be text-align: left;. It seems that IE handles this by centering the element, which I don't think is the "standard" way it should be handled.

Firefox treats the element the same way as others, by aligning it left.

If you eliminate the width declaration for your headings and specify that the bg image should be centered, I think you will get consistent results. For example:```
.casualHeading2 {
background-image: url(../images/casualheading7.jpg);
background-repeat: no-repeat;
background-position: center;
height: 41px;
display: block;
margin-top: 2px;
margin-bottom: 2px;
}

width: 144px; 
and add
margin-left: auto;
margin-right: auto;
(I haven't tested this variant on your site.)
23 Oct 2008, 1:26 AM
#9
dragon03kf avatar

dragon03kf

New Zenner

Join Date:
Oct 2008
Posts:
24
Plugin Contributions:
0

Re: Customizing The SideBox

Thank You Very Much for the info it fixed except for the other heading the first one "Mens" in firefox is still to the very top and another thing is in this link the picture of "Retun to the Product List" is not appearing but i dont know how did i erease it or what did i do wrong heres the link

http://protectedpro.com/gomgi/index.php?main_page=product_info&cPath=16&products_id=15

im sorry to ask a lot of questions but is cause im new to zen cart.

Thank You

23 Oct 2008, 7:20 AM
#10
gjh42 avatar

gjh42

Black Belt

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

Re: Customizing The SideBox

The float: left; on the box heading is causing it to "fall out" of the normal div structure and let the Mens heading slip up behind it. You don't need the float for either the container or the heading, anyway. When you delete the box heading float, the Mens heading reappears.```
h3.leftBoxHeading, h3.leftBoxHeading a {
font-size: 1em;
color: #ffffff;
}

.leftBoxHeading {
margin-top: 1px;
background-image: url(../images/topgomgimenu.jpg);
float: left; /Left Box Properties/
height:183px;
width: 199px;
}

.leftBoxContainer {
background-image: url(../images/semicompletemenu2.jpg);
background-repeat: no-repeat;
float: left;
margin-top: 0px;
height: 733px;
width: 199px;
border: 0px solid #ffffff; /Alignment of the left Boxes/
}

24 Oct 2008, 12:26 AM
#11
dragon03kf avatar

dragon03kf

New Zenner

Join Date:
Oct 2008
Posts:
24
Plugin Contributions:
0

Re: Customizing The SideBox

wow thank you very much it looks the same now thank you

i dont know if you can help me with this one but i have tried to resize the shopping cart table but i havent been able to figure it out here is the link if you can help me please

http://protectedpro.com/gomgi/index.php?main_page=shopping_cart

thank you

24 Oct 2008, 7:32 AM
#12
gjh42 avatar

gjh42

Black Belt

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

Re: Customizing The SideBox

All of your pages' content overflows the visual container, but it is not apparent with most of them.
In your stylesheet, change the width of .centerColumn as desired:```
.centerColumn{
width: 650px;
float: left; /Changes the Orange Bar/
margin-left: 5px;
margin-top: -2px;

}