Is there any way to make the default view on categories be list view?
It looks much better then grid view, but I can't find a way to change it to be list by default.
All results I've found while searching for a solution refer to changes for 1.5 which no longer seems to be the same for 2.3.0.2
Try this:
In catalog/view/javascript/common.js
Find:
Replace With:
Regards,
Joel.
In catalog/view/javascript/common.js
Find:
Code: Select all
if (localStorage.getItem('display') == 'list') {
$('#list-view').trigger('click');
$('#list-view').addClass('active');
} else {
$('#grid-view').trigger('click');
$('#grid-view').addClass('active');
}
Code: Select all
if (localStorage.getItem('display') == 'grid') {
$('#grid-view').trigger('click');
$('#grid-view').addClass('active');
} else {
$('#list-view').trigger('click');
$('#list-view').addClass('active');
}
Regards,
Joel.
Who is online
Users browsing this forum: No registered users and 4 guests