2

I want to show multiple Layered Navigation on Home Page.

I want to show multiple Layered Navigation category wise on Home Page.

I refer this Magento 2 How to show Layered Navigation on home page? article.

3
  • Try adding the blocks in <referenceContainer name="main.contents"> Commented May 16, 2018 at 10:53
  • Try: magento.stackexchange.com/questions/169812/… Commented May 17, 2018 at 12:22
  • Thanks for your comment, but i refer your link and it's for only one type of layer navigation. there are no way for category wise... i hope you understand... Commented May 18, 2018 at 3:59

1 Answer 1

1

You can try Cms Page > Homeopage > design tab -> layout -> selected "2 columns with left", Then See Design Tab.

Now You can add:-

<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 Will Works :-)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.