Web Analytics

Fill the form & Get Installation Support

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:

Fill the below form if you have any Magento programming need.





    Recent Articles

    Author Info

    Author Image

    Magento Developer

    Hire S. Gorjia

    Get a Free Quote





      /* second popup */

      Connect With Us