cancel
Showing results for 
Search instead for 
Did you mean: 

Move category toolbar next to breadcrumb

Move category toolbar next to breadcrumb

I'm working on a template for a Magento 2 site, based on the Magento Blank theme, and one of the design requirements is to have the category toolbar inline with the breadcrumb.

I tried moving the toolbar using XML but somehow it's not working, what would be the correct way to accomplish this?

 

2 REPLIES 2

Re: Move category toolbar next to breadcrumb

How to move a block or container to another place by the <move> layout instruction? https://mage2.pro/t/856

This should work.

Re: Move category toolbar next to breadcrumb

I tried with:

<move element="product_list_toolbar" destination="columns" before="-" />

It seems to move the toolbar correctly, but then the Category page throws a Fatal Error:

Fatal error: Uncaught Error: Call to a member function getSize() on null in /app/design/frontend/MyCompany/MyTheme/Magento_Catalog/templates/product/list/toolbar.phtml on line 18

Any idea of how to solve it? Thanks.