Jump to content

How To Change Default Grid


Recommended Posts

I want to change the default grid so I can have like 6 products on the same line in stead of 4 or 3.

This is what I've done so far:

I changed some code in the product-list.tpl 

<li class="ajax_block_product{if $page_name == 'index' || $page_name == 'product'} col-xs-12 col-sm-4 col-md-2{else} col-xs-12 col-sm-6 col-md-2

 

and: 

 

{*define number of products per line in other page for desktop*}

{if $page_name !='index' && $page_name !='product'}
{assign var='nbItemsPerLine' value=6}
{assign var='nbItemsPerLineTablet' value=2}
{assign var='nbItemsPerLineMobile' value=3}
{else}
{assign var='nbItemsPerLine' value=6}
{assign var='nbItemsPerLineTablet' value=3}
{assign var='nbItemsPerLineMobile' value=2}
 
I thought this would be enough but nothing changed..
Can someone help me?
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...