Does anyone know how to change the default view to list in product list in prestashop 1.7 ? I want to remove completely the view buttons and set the view as list permanently without the customer being able to change it.
I managed to do it in the rudimentary way but I know there is another better way to do it. This is how I did it:
I added in theme.css:
.grid_list {
display: none;
}
I added in custom.js:
$(document).ready( function () {
$('#list').trigger("click");
});
My own way is to click on the list view after the page is loaded but I get some kind of strange grid to list change after the page is loaded and I do not want that. Can someone tell me another way to do it ? I would really appreciate.
I found how to do it for prestashop 1.6 but there is no global.js file in prestashop 1.7.
Thank you