I need to move toolbar section to the column.top, I have used below code in my catalog_category_view.xml file.

 <?xml version="1.0"?>
 <page layout="1column" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <move element="product_list_toolbar" destination="columns.top" after="category.cms"/>   

Its not moving throwing error like below,

Uncaught Error: Call to a member function getSize() on null in /vendor/magento/module-catalog/view/frontend/templates/product/list/toolbar.phtml:18

How to move tool bar to the top section. Because i am looking for tool bar to be in full width rather than into the category product section. Is that can be done. Please anyone help me. Thanks.

  • Your magento version ? – Rohan Hapani Nov 12 '18 at 11:46
  • I am using 2.2.4. – jafar pinjar Nov 12 '18 at 11:49
  • You need to close <page> tag in your xml file – cnbandicoot Nov 12 '18 at 13:52
  • @cnbandicoot, Yes i have closed it, but not posted here, sorry, updated my question – jafar pinjar Nov 12 '18 at 14:07
  • did you manage to move it? – Sergey Korzhov May 13 at 13:13

Your Answer

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

Browse other questions tagged or ask your own question.