cancel
Showing results for 
Search instead for 
Did you mean: 

Choose List view as default on specific category page. Magento 2.3

Choose List view as default on specific category page. Magento 2.3

I have looked everywhere for this, so hopefully someone can help.

 

I am wanting to have a specific category page show products in list view by default. I know this can be done for all category pages, but I only want it for a specific page due to an extension function only being available in list view. I do not want the customer to have to change it manually. 

 

I did find some code for a module to do this, but when I tried it no products would show at all: https://magento.stackexchange.com/questions/115375/set-grid-mode-as-default-for-some-specific-catego...

 

Any help is much appreciated.