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


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

How to Change the Column Widths

Cloud Servers 727 × 90

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.

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.

Rate this Tutorial:
No Comments Leave a Comment
Leave a Comment

Cloud Servers 1 230×230

Other (192)

Popular Keywords

Web Banner 1 230×230