0

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 ?

  • if you can use category page as 1 column then you have display as top layer naviagtion – Rakesh Jesadiya Dec 8 '16 at 13:46
  • yes, I am using Product list page as 1 column only. – shankar boss Dec 8 '16 at 14:00
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>
  • Thank you for your reply.I will check and let you know the status. – shankar boss Dec 8 '16 at 14:01
  • Have you checked code? – Rakesh Jesadiya Dec 8 '16 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. – shankar boss Dec 9 '16 at 5:55
  • if possible can you suggest me how we can call that filters template file directly where ever we want. – shankar boss Dec 9 '16 at 5:57
  • yes, I kept it in my theme folder "Magento_Theme" module only @Rakesh But no luck :( – shankar boss Dec 9 '16 at 6:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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