Display 4 items per row from any category on magento1.7 home page

Display 4 items per row from any category on magento1.7 home page

September 12, 2026 · Illustrated author avatarBy Stefan Bogdanescu
Display 4 items per row from any category on magento1.7 home page

Displaying 4 Products Per Row on Magento 1.7 Homepage

As a fresher developer working with Magento 1.7, you’re likely looking to customize your storefront’s appearance. A common requirement is to display products in rows of four across the homepage category section.

Let me guide you through the process step-by-step:

Step 1: Understand Your Theme Structure

In your case, you’re using a free Jewellery theme from Wayaat (https://www.wayaat.com/magento-theme/jewellery-magento-theme.html). This is a responsive theme that comes with its own customizations.

The homepage layout for this theme is typically defined in the app/design/frontend/default/yourtheme/template/page/html/ folder, specifically in the file called phtml.

Step 2: Locate the Relevant PHTML File

For your dummy instance at https://questoons.com/magento/, navigate to your theme’s template folder:

app/design/frontend/default/yourtheme/template/catalog/category/view.phtml

This is where the category view logic lives.

Step 3: Modify the Product Listing Loop

Open the view.phtml file in a text editor. Look for this line of code around line 170 (it may vary slightly depending on theme updates):

<?php foreach ($_categoryProducts as $_product): ?>

This is where the loop begins to display each product.

Step 4: Alter the CSS Grid

To change the number of products per row from three to four, you need to alter the CSS grid system. Look for the following CSS in your theme’s css/styles.css file or a similar location:

.category-products .product-list li {
    width: 32%;
}

Change this line to:

.category-products .product-list li {
    width: 25%; /* Reduced from 32% to 25% for four items per row */
}

This reduces the width of each product box, allowing for an additional item in each row.

Step 5: Verify Your Changes

Save your modifications and clear your browser cache. Return to your Magento homepage at https://questoons.com/magento/. You should now see four products displayed per row under the category section.

Best Practices for Theme Customization

  • Always backup your theme files before making changes.
  • Test your modifications on a staging environment first.
  • Document all changes you make to the codebase.

Additional Resources

For more advanced customizations and Magento development best practices, I recommend checking out our blog at https://laravelcompany.com/category/magento/.

We have in-depth guides on topics like theme development, module creation, and performance optimization that can help you grow as a Magento developer.

Remember, the key to success in e-commerce is to provide a seamless user experience through intuitive design and efficient navigation. By carefully managing your product display settings, you’re taking a crucial step toward improved customer satisfaction and potential sales growth.

Happy coding!

Magento 1 Catalog Themes Admin

Our network