free
web stats

Fill the form & Get Installation Support

Connect With Us





captcha

Connect With Us





captcha

Magento 2 “Category” Filter Expand by default for all categories in layered navigation

By default Magento collapse all filters in layered navigation. So if you want to expand only “Category” filter please follow below steps.

First you have to override below PHTML file in your theme:

Like:

After overriding above PHTML file find below code and replace with new code (Around line no. 33 to 42):

Replace with this code:

After doing all steps please clean the cache php bin/magento cache:clean and check in front-end categories page category filer is expand like below image:

Was this article helpful?
YesNo
Fill the below form if you have any Magento programming need.




captcha