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

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

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.

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

Other (192)

Popular Keywords