Here's what we did, in case it can be helpful to someone else:
we applied a simple workaround that didn't touch the template's file: we just added a few simple lines of javascript to simulate a click on the selector, and we hid the selector with CSS
<script> document.addEventListener('DOMContentLoaded', function(){ var element = document.querySelector("[data-layout-name='bd-griditemlist']");element.click(); });</script>
This simple script gets the list style selector and clicks on it as soon as the page is loaded, resulting in the desidered view.
Maybe it's not a clean solution but it works and it doesn't require to alter the template's files.
Here's what we did, in case it can be helpful to someone else:
we applied a simple workaround that didn't touch the template's file: we just added a few simple lines of javascript to simulate a click on the selector, and we hid the selector with CSS
<script> document.addEventListener('DOMContentLoaded', function(){ var element = document.querySelector("[data-layout-name='bd-griditemlist']");element.click(); });</script>
This simple script gets the list style selector and clicks on it as soon as the page is loaded, resulting in the desidered view.
Maybe it's not a clean solution but it works and it doesn't require to alter the template's files.
Last edited 11 February 2022 by athenaios83