How to remove or hide breadcrumbs for a particular page in magento

18,200

Solution 1

Try using

<remove name="breadcrumbs" />

Within specific handle of your layout xml file. For example

<catalog_category_default>
<remove name="breadcrumbs" />
</catalog_category_default>

Or try using that within the cms page layout form in backend under CMS->Pages.

Solution 2

You can do by the admin:

CMS-> Pages:
Page Information
Design:
Custom Design
Custom Layout Update XML: <remove name="breadcrumbs" />

Solution 3

Magento 2 Code to remove breadcrumbs for CMS Page

<referenceContainer name="page.top">
    <referenceBlock name="breadcrumbs" remove="true" />
</referenceContainer>


Solution 4

You can remove breadcrumbs in various ways in Magento.

For example if you want remove from a specific action like (Home > Catalog Advanced Search > Results) you just update catalogsearch_advanced_result in catalogsearch.xml file from your theme with:

 <catalogsearch_advanced_result translate="label">
     <remove name="breadcrumbs" />    
 </catalogsearch_advanced_result>

If you want to remove from all dynamic pages add this

 <default>
     <remove name="breadcrumbs" />
 </default>

If you want to remove from a CMS page, you just configure from admin panel. Go to

system->configuration and then web->Show Breadcrumbs for CMS Pages.

Refresh your cache and check.

Solution 5

For Magento 2.1

Goto Admin->Store->General->Web->Default Pages->Show Breadcrumbs for CMS Pages

Select Option No for breadcrumbs

Share:
18,200
Shanthi
Author by

Shanthi

Updated on June 12, 2022

Comments

  • Shanthi
    Shanthi almost 2 years

    I am trying to hide the (Home > Catalog Advanced Search > Results) breadcrumbs alone in magento during the advanced search results. I don't want to navigate through the breadcrumbs in result page. Anybody help me to make this possible.

  • Harit
    Harit over 9 years
    Your answer is right. But it's never a good practice to hack the code inside /app/design/frontend/base/ directory. Magento allows you to override that file to app/design/frontend/default so override catalogsearch.xml to /app/design/frontend/default/default/layout/ or your theme folder and do modifications to it. Also an alternative way is to create a local.xml file in your theme folder. Check this link for better understanding magebase.com/magento-tutorials/…
  • Shanthi
    Shanthi over 9 years
    I will proceed as you suggested... Thankyou Harit
  • Goose
    Goose over 6 years
    Can also apply to Magento 1.9
  • Praful Rajput
    Praful Rajput almost 5 years
    @Harit, from backend CMS->Pages->Layout Update XML we can't write <remove> tag. It's allow only ( attribute, block, referenceBlock, referenceContainer, container, move, uiComponent )