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

Linux KVM Hosting
cPanel KVM
Brazil VPS
USA VPS
Linux Cloud Server
Germany Cloud Servers
Windows Cloud Server
OpenVZ VPS
KVM VPS
Ubuntu 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.

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

Other (192)

Popular Keywords