show magento layer state on catalog listing (not on sidebar)

show magento layer state on catalog listing (not on sidebar)

August 31, 2026 · Illustrated author avatarBy Stefan Bogdanescu
show magento layer state on catalog listing (not on sidebar)

Showing Magento Layer State Below Product Listing

In Magento, the default implementation of layered navigation appears as a sidebar on product listing pages. However, sometimes you may want to display this information directly within the content area, just below the page title. This blog post will guide you through achieving exactly that.

Firstly, let’s understand why your current attempts didn’t work:

  1. Including template/state.phtml in list.phtml: While this might seem like a logical approach, it doesn’t work because the state.phtml file requires specific layout parameters provided by the core Magento templates.

  2. Manipulating catalog.xml: The “catalog.leftnav” block refers to the left navigation container, which is not where you want your filters to appear. You need to use the correct context for the content area.

To solve this issue, we’ll create a new template and then call it from within our listing page. Here’s how:

Step 1: Create a new template

Navigate to your theme directory (e.g., app/design/frontend/YOUR_THEME_NAME/default/template) or use a local.xml override if you’re using Magento 2.

Create a new file called custom_layer_state.phtml. This is where we’ll define our custom layered navigation layout.

Step 2: Add the custom template code

In custom_layer_state.phtml, paste the following:

<?php echo $this->getChildHtml('layer_filter') ?>

This line tells Magento to display the ‘layer_filter’ block, which contains all your filter options.

Step 3: Call the new template from the listing page

Open your main product listing template (usually template/catalog/product/list.phtml). Just below the area where you want the filters to appear (typically after the category title), paste this line:

<?php echo $this->getLayout()->createBlock('Magento\LayeredNavigation\Block\Filter')->setTemplate('custom_layer_state.phtml')->toHtml(); ?>

This code creates a new instance of the layered navigation filter block and sets our custom template as its layout.

Step 4: Clear cache (if necessary)

After making these changes, ensure you clear your Magento cache. In the admin panel, go to System > Cache Management and click “Flush Magento Cache.”

That’s it! Your layered navigation filters should now appear in the content area of your product listing pages as desired.

Remember, this method requires a basic understanding of Magento’s template structure and block system. If you’re unsure about any part of the process, consider consulting with an expert or reviewing the official Magento documentation on template layout files: https://laravelcompany.com/docs/magento-2/advanced-tutorials/layouts

With this approach, not only will your filters be visible directly below the page title, but you also maintain a clean and organized code structure that’s easy to manage.

Magento 2 Catalog Themes Configuration

Our network