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>
This link is related to your requirements,
I have added this to my homepage XML layout update. But this is not working for me.