We use cookies to improve our services and provide a better experience. By continuing to use this site, you agree with our Cookies Policy.

Tutorials
More than 400 step-by-step articles to guide you through online project development.
HomeTutorialsCMS TutorialsosCommerce

How to Change the Column Widths

cPanel KVM
USA VPS
OpenVZ VPS
Brazil VPS
Ubuntu VPS
Germany Cloud Servers
Linux KVM Hosting
Windows Cloud Server
Linux Cloud Server
KVM VPS

In case you would like to adjust the widths of the column, it might be required to edit values for specific variables. For this reason, you will need to open osCommerce template file and edit specific variables to meet our requirements.

Follow These Steps to Change the Column Widths

Open file “includes/classes/osc_template.php” for editing and locate the following lines.

1
2
3
var $_grid_container_width = 24;
var $_grid_content_width = 16;
var $_grid_column_width = 4;

By default it will have such values set as shown above. In order to change the column widths, you should simply increase or decrease values for the provided variables. As shown in the variables, you are able to change widths for the container, content, and column. By playing with those variables, we can adjust column widths and new settings will be applied for the website.

Ubuntu VPS
KVM VPS
cPanel KVM
Linux Cloud Server
Linux KVM Hosting
Brazil VPS
OpenVZ VPS
USA VPS
Germany Cloud Servers
Windows Cloud Server
Rate this Tutorial:
No Comments Leave a Comment
Leave a Comment

Other (192)

Popular Keywords