- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2018
06:20 AM
06-05-2018
06:20 AM
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>
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2018
06:29 AM
06-05-2018
06:29 AM
Re: Add layered navigation on Home page
This link is related to your requirements,
If Issue Solved, Click Kudos/Accept As solutions. Get Magento insight from
Magento 2 Blogs/Tutorial
Magento 2 Blogs/Tutorial
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2018
07:58 PM
06-05-2018
07:58 PM
Re: Add layered navigation on Home page
I have added this to my homepage XML layout update. But this is not working for me.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2019
09:23 PM
10-31-2019
09:23 PM