X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   questions about adjusting website width. (https://forum.x-cart.com/showthread.php?t=16373)

minhta 09-05-2005 06:54 AM

questions about adjusting website width.
 
Hi All.

This is my first post :) Hopefully one day soon I'll be one of you people answer posts to help others but for now any help is much appreciated.

I've edited rectangle_top.tpl and changed the following code in the <table> tag:

width="{$width|default:"100%"}"

to width="800".

Firstly, the $width in the code above suggests there should be a variable for the width of the table. Is this correct? If it is, then wouldn't it be better to go and set that $width value rather than editing the code? If it is, then where is this $width variable please?

Or is it better to just set the width="800" like I've done?

Also, after change the width value to 800, the website is sized at 800 pixels but my admin page also go resized to 800 pixels. Is there a way to resize the website to 800 pixels but not the admin section?

balinor 09-05-2005 07:41 AM

Make a copy of rectangle_top.tpl....call it rectangle_top_admin.tpl. Open single/home.tpl and change the include from retangle_top.tpl to rectangle_top_admin.tpl. Now you can edit rectangle_top.tpl and it won't affect the admin side.

And yes, just change it to width=x if you want it to be a fixed width.

minhta 09-06-2005 11:46 PM

Thanks balinor.

That works!


All times are GMT -8. The time now is 11:24 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.