Jump to content

How to change from 2 columns to 1 column in the category on mobile devices in PS.7.8.2 ?


goldies

Recommended Posts

Hello community, does anyone know how to change from 2 columns to 1 column in the category on mobile devices in PS.7.8.2 ?

To be honest, I don't know what the Prestashop is doing, you can change the option for desktop but not for mobile devices in "choose layouts"?

For me personally, this looks terribly (2 columns on mobile devices)! 

 

 

Screenshot_20220122-094729_Chrome.jpg

  • Like 1
Link to comment
Share on other sites

In / httpdocs / themes / classic / templates / catalog / listing find product-list.tpl and find this code: {include file = 'catalog / _partials / products.tpl' listing = $ listing productClass = "col-xs-6 col-xl-4"}

In this code change only is col-xs-6 to col-xs-12 : {include file = 'catalog / _partials / products.tpl' listing = $ listing productClass = "col-xs-12 col-xl-4"}

col-xs-12 is for one column and col-xs-6 for two columns.

Link to comment
Share on other sites

  • 5 weeks later...
On 25/1/2022 at 3:12 PM, goldies dice:

In / httpdocs / temi / classico / modelli / catalogo / elenco trova product-list.tpl e trova questo codice: {include file = 'catalog / _partials / products.tpl' elenco = $ elenco productClass = " col-xs-6 col -xl-4"}

Solo in questo codice la modifica è da col-xs-6 a col-xs-12 : {include file = 'catalog / _partials / products.tpl' listato = $ listato productClass = " col-xs-12 col-xl-4"}

col-xs-12 è per una colonna e col-xs-6 per due colonne.

Il mio è già così, ma mi mostra sempre 2 colonne di prodotti. 

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