6

I am messing with an issue in Magento 2 site. I have to remove breadcrumbs from the category page. I have also to remove the toolbar from the same page.

enter image description here

  • you can check my answer below. – Dinesh Yadav Jun 30 '17 at 12:54
10

Add below code to remove breadcrumbs from category pages

app/design/frontend/Vendor/Theme/Magento_Catalog/layout/catalog_category_view.xml

<referenceBlock name="breadcrumbs" remove="true" />

For remove toolbar

<referenceBlock name="product_list_toolbar" display="false" />

Remove var/cache and var/page_cache folder.

Thank you for the information this was helpful. For Magento 2.2.5 use the code below

<referenceContainer name="breadcrumbs" remove="true" />

5

Add below code to remove breadcrumbs from category pages

app/design/frontend/Vendor/Theme/Magento_Catalog/layout/catalog_category_view.xml

<referenceBlock name="breadcrumbs" remove="true" />

And for removing toolbar, Comment out below line form list.phtml

app/design/frontend/Vendor/Theme/Magento_Catalog/templates/product/list.phtml

the 2 lines with

<?php echo $block->getToolbarHtml() ?>

You can see more here

  • I have to remove toolbar also in same page – Amrit Pal Singh Jun 30 '17 at 12:34
  • See my updated answer – Suresh Chikani Jun 30 '17 at 12:35
  • If my solution is works for you, Accept my answer. – Suresh Chikani Jun 30 '17 at 12:38
  • Toolbar is not getting hidden – Amrit Pal Singh Jun 30 '17 at 12:39
  • I have added the picture – Amrit Pal Singh Jun 30 '17 at 12:45
3

Navigate to

app/design/frontend/Vendor/Theme/Magento_Catalog/layout/catalog_category_view.xml

and put below code in <body> tag

<referenceBlock name="breadcrumbs" remove="true" />
<referenceBlock name="product_list_toolbar" display="false" />
2

You can try the below code in your layout file catalog_category_view.xml file.

<referenceBlock name="breadcrumbs" remove="true" />

Your Answer

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

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