I need my title of the category page to be placed between the number of items and the sort by option. What should I do?
Which container has to be moved to which destination?
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.
Sign up to join this communityI need my title of the category page to be placed between the number of items and the sort by option. What should I do?
Which container has to be moved to which destination?
Firstly remove title block from your custom frontend/layout/catalog_category_view.xml
<referenceBlock name="page.main.title" remove="true" />
Then this is the file from where you can inject title block vendor/magento/module-catalog/view/frontend/templates/product/list/toolbar.phtml make sure to override the file.
Title block is called something like
<block class="Magento\Theme\Block\Html\Title" name="page.main.title" template="Magento_Theme::html/title.phtml"/>
Hope this helps you.
If you want to move the title above content please follow the below steps.
In the folder vendor/magento/module-catalog/view/frontend/layout/ is the file catalog_category_view.xml.
Copy this file to your own theme folder or module folder (if you don't know how to create a theme or a module take a look in the dev docs from Magento).
Add the following line at the end of that file before the closing body tag
<move element="page.main.title" destination="content" before="category.products"/>