cancel
Showing results for 
Search instead for 
Did you mean: 

Add layered navigation on Home page

Add layered navigation on Home page

I am using magento 2.2.4 and I need to add layered navigation on my home page. I have tried following code block in Admin -> Pages-> Home page -> Design tab -> Layout -> "2 columns with left bar". Then added following code in design-> Layout Update XML.

 but this not worked for me. Any other option is there to do this ?

 

<referenceContainer name="sidebar.main">
        <block class="Magento\LayeredNavigation\Block\Navigation\Category" name="catalog.leftnav" before="-" template="layer/view.phtml">
            <block class="Magento\LayeredNavigation\Block\Navigation\State" name="catalog.navigation.state" as="state" />
            <block class="Magento\LayeredNavigation\Block\Navigation\FilterRenderer" name="catalog.navigation.renderer" as="renderer" template="layer/filter.phtml"/>
        </block>
    </referenceContainer>
2 REPLIES

Re: Add layered navigation on Home page

This link is related to your requirements,

https://magento.stackexchange.com/questions/172674/magento-2-layered-navigation-on-cms-page-or-homep...

If Issue Solved, Click Kudos/Accept As solutions.

Re: Add layered navigation on Home page

I have added this to my homepage XML layout update. But this is not working for me.