Categories

Featured templates

Magento. How to set number of columns in category listing (for Magento 1.8.x+ templates)

Ray Taylor July 24, 2015
Rating: 5.0/5. From 1 vote.
Please wait...

In this tutorial you will learn how to set number of columns in category listing in Magento template(s).

Magento. How to set number of columns in category listing (for Magento 1.8.x+ templates)

  1. Using your file manager, go to app/design/frontend/default/themeXXX/layout/catalog.xml file:

    magento_column_1

  2. Here, we can set number of columns for Anchor and/or non-Anchor categories.

  3. Find the following code:

    <action method="setColumnCount"><columns>3</columns></action>

    magento_column_2

  4. Change it to the following:

    <action method="setColumnCount"><columns>4</columns></action>
  5. Save this file and upload to the server.

  6. Now open app/design/frontend/default/themeXXX/template/catalog/product/list.phtml file:

    magento_column_3

  7. We need to edit the code for “Grid Mode”.

  8. Under the “products-grid row” class, find the following code: col-xs-12 col-sm-4:

    magento_column_4

  9. Change it to: col-xs-12 col-sm-3.

  10. Save this fie and upload to the server.

  11. Reload your site to see the changes.

Thank you for reading this video tutorial. Now you know how set number of columns in category listing in Magento template(s).

Feel free to check the detailed video tutorial below:

Magento. How to set number of columns in category listing (for Magento 1.8.x+ templates)

Best Premium Magento Themes
This entry was posted in Magento Tutorials and tagged category, column, listing, Magento. Bookmark the permalink.

Submit a ticket

If you are still unable to find a sufficient tutorial regarding your issue please use the following link to submit a request to our technical support team. We'll provide you with our help and assistance within next 24 hours: Submit a ticket