1

How Can I call Magento 2 default product layered navigation filters (left side filters) in top of the product list page.Can you Help me on this ?

2
  • if you can use category page as 1 column then you have display as top layer naviagtion Commented Dec 8, 2016 at 13:46
  • yes, I am using Product list page as 1 column only. Commented Dec 8, 2016 at 14:00

1 Answer 1

2

You have to just override xml file into your theme,

vendor/magento/module-layered-navigation/view/frontend/page_layout/2columns-left.xml

into your custom theme,

Replace xml with below code,

<?xml version="1.0"?>

<layout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_layout.xsd">
    <move element="catalog.leftnav" destination="content" before="-"/>
</layout>
10
  • Thank you for your reply.I will check and let you know the status. Commented Dec 8, 2016 at 14:01
  • Have you checked code? Commented Dec 8, 2016 at 15:52
  • yes @Rakesh, I checked and that code is working perfectly fine for magento default theme (luma) but for my custom theme it is not working. Commented Dec 9, 2016 at 5:55
  • if possible can you suggest me how we can call that filters template file directly where ever we want. Commented Dec 9, 2016 at 5:57
  • yes, I kept it in my theme folder "Magento_Theme" module only @Rakesh But no luck :( Commented Dec 9, 2016 at 6:47

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.