Jump to content

how can I show items in two columns on mobile?


Recommended Posts

Hi,

 

I want to show more products on the screen in a more compact way, especially on mobile, I know there are a lot of themes, but I can't find any to support two columns view on mobile. Is that something I can achieve with theme? If so, where should I start from?

 

Thanks,

Henry

Link to comment
Share on other sites

  • 1 month later...
  • 2 weeks later...
  • 7 months later...

I would also like to know how this is working with @media or in any other way! :)

 

This is what I did and it worked for me.

 

In your product-list.tpl file there should be a line like this:

 

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

 

for me it was line 49.

 

change the col-xs-12 to col-xs-6 instead and it should show up in two columns.

  • Like 1
Link to comment
Share on other sites

  • 1 year later...
  • 6 months later...
On 9/14/2015 at 6:07 PM, anazmi said:

 

This is what I did and it worked for me.

 

In your product-list.tpl file there should be a line like this:

 

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

 

for me it was line 49.

 

change the col-xs-12 to col-xs-6 instead and it should show up in two columns.

please can you make a screen shot to know exactly where i find it because i'm not expert on prestashop

thanks

Link to comment
Share on other sites

  • 3 years later...
Em 14/09/2015 às 22:07, anazmi disse:

 

Isso é o que eu fiz e funcionou para mim.

 

No arquivo product-list.tpl deve haver uma linha como esta:

 

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

 

para mim foi a linha 49.

 

mude o col-xs-12 para col-xs-6 e ele deve aparecer em duas colunas.

onde encontrou este arquivo pode falar o caminho certim?

Edited by Julio Barbosa
erro (see edit history)
Link to comment
Share on other sites

  • 7 months later...

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...