Hi Phil
I want to load a specific category page in list view rather than grid or row using reboot
I can see that running this in console works, but when I place the code on the page it does not execute.
any ideas?
PHP Code:
{if $cat eq 7}
{literal}
<script>
$(document).ready(function(){
$('.products-container .item').removeClass('col-xs-12 col-sm-6 col-md-4 col-lg-4 col-lg-12 grid-view rows-view list-view').addClass('col-lg-12 list-view');
$('button.switcher').removeClass('active');
$('button.switch_layout_list').addClass('active');
$('#products-layout').text('List');
});
</script>
{/literal}
{/if}
the url it would work on
https://www.johnandginger.co.uk/samples.html
additionally i remove the cookie lines