Question

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 ?

Was it helpful?

Solution

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>
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top