Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / How do I change the width of the template?

How do I change the width of the template?

Locked

Views: 1,938

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
27 Jun 2008, 4:51 PM
#1
yvonne8 avatar

yvonne8

New Zenner

Join Date:
Jun 2008
Posts:
13
Plugin Contributions:
0

How do I change the width of the template?

Hi all,

I am trying to change the overall width of my custom template to be longer. I followed the tutorial instruction as below, but no changes were made to the width of my template. Please help to see where i had gone wrong. Thanks :smile:


How do I change the width of the template? (V1.3+)

FOR v1.3.x, assuming you've based your template on "template_default": open your stylesheet and find

#mainWrapper {
background-color: #ffffff;
text-align: left;
width: 100%;
vertical-align: top;
}

Simply change 100% to 750px or whatever width you desire

Yvonne

27 Jun 2008, 5:00 PM
#2
charmedbytina2 avatar

charmedbytina2

Totally Zenned

Join Date:
Mar 2007
Location:
AZ
Posts:
1,890
Plugin Contributions:
0

Re: How do I change the width of the template?

Did you make this change to the stylesheet for your NEW template?
Look at your stylesheet again - is your change there? Did you change the chmod to 777 before you edited the file?
A link to your site would REALLY help.

Tina

27 Jun 2008, 5:11 PM
#3
yvonne8 avatar

yvonne8

New Zenner

Join Date:
Jun 2008
Posts:
13
Plugin Contributions:
0

Re: How do I change the width of the template?

Hi Tina,

the website that i am setting up is http://www.jewellery-hub.com

i just tried setting to 777 and change the width from the original 750px to 1000px but still not able to do so.

Yvonne

27 Jun 2008, 5:15 PM
#4
charmedbytina2 avatar

charmedbytina2

Totally Zenned

Join Date:
Mar 2007
Location:
AZ
Posts:
1,890
Plugin Contributions:
0

Re: How do I change the width of the template?

Looks 100% to me now! :clap:

Change the green bars - these are the tile_back.gif.

Create a new tile_back.gif the color you want and upload to your templates/custom/images folder.

Tina

27 Jun 2008, 5:24 PM
#5
yvonne8 avatar

yvonne8

New Zenner

Join Date:
Jun 2008
Posts:
13
Plugin Contributions:
0

Re: How do I change the width of the template?

Hi Tina,

I tried viewing my website after changing the width to 1000px but it seems no differences from the initial 750px width.

Actually saw a website https://www.giftsforguys.com in zen cart showroom. Like to change my website overall width to be something similar to this website (to have longer width).

Did i change the wrong width. Is there any width i must change beside the main wrapper?

Yvonne :smile:

27 Jun 2008, 6:54 PM
#6
momokui avatar

momokui

New Zenner

Join Date:
Jan 2007
Posts:
32
Plugin Contributions:
0

Re: How do I change the width of the template?

To change the width of the template:

open your custom css file in folder includes/template/your_template/css/stylesheet.css

#mainWrapper {
    background-color: #ffffff;
    text-align: left;
    [B]width: 750px;[/B]
    vertical-align: top;
    border: 1px solid #9a9a9a;
    }
```change the width to 1000px if you want to have the same width as the gift website.
1 Jul 2008, 10:35 PM
#7
blingshop avatar

blingshop

New Zenner

Join Date:
Jul 2008
Posts:
2
Plugin Contributions:
0

Re: How do I change the width of the template?

On the same subject, I did what you said on this site http://www.myonestopblingshop.com/

and it worked great but now I need to center my header graphic. Where would I find the code to do that? Thanks a ton!

1 Jul 2008, 11:19 PM
#8
gjh42 avatar

gjh42

Black Belt

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

Re: How do I change the width of the template?

You have a Template Monster template, which means that standard fixes are likely to not work. TM drastically changes the CSS tags as well as the functional code, and it can be very difficult for us to figure out what they have done.
In this case there is a simple fix: Add to the end of your stylesheet

.rhead, .rhead2 {text-align: center;}

1 Jul 2008, 11:49 PM
#9
blingshop avatar

blingshop

New Zenner

Join Date:
Jul 2008
Posts:
2
Plugin Contributions:
0

Re: How do I change the width of the template?

Awesome, thanks for the help.