In Blank theme the category name is located to the left just above the layered navigation sidebar. I'd like to move the category name to the right, above the products column, so the side bar goes up.

2 Answers 2

  1. In the folder vendor/magento/module-catalog/view/frontend/layout/ is the file catalog_category_view.xml.

  2. Copy this file to your own theme folder or module folder (if you dont know how to create a theme or a module take a look in the devdocs from Magento).

  3. Add following line at the end of that file before the closing body tag

<move element="page.main.title" destination="content" before="category.products"/>

<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="2columns-left" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
        <move element="page.main.title" destination="content" before="category.products"/>
        <move element="category.description" destination="page.main.title" after="-" />

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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