Shanthi
Shanthi

Reputation: 716

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

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.

Upvotes: 4

Views: 19130

Answers (8)

Rishi Ranjan
Rishi Ranjan

Reputation: 195

Magento 2 Code to remove breadcrumbs for CMS Page

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


Upvotes: 3

Manish
Manish

Reputation: 667

For Magento2 Remove from specific CMS page. Add following on Design >>Layout section of you CMS page

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

Upvotes: 1

kadzielawa konrad
kadzielawa konrad

Reputation: 463

In layout update xml, per cms page:

<reference name="root">
<remove name="breadcrumbs"/>
</reference>

Upvotes: 0

Moin Malek
Moin Malek

Reputation: 111

For Magento 2.1

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

Select Option No for breadcrumbs

Upvotes: 1

khasru
khasru

Reputation: 169

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.

Upvotes: 2

Ezequiel De Simone
Ezequiel De Simone

Reputation: 330

You can do by the admin:

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

Upvotes: 4

Shanthi
Shanthi

Reputation: 716

Edit catalogsearch.xml in /app/design/frontend/base/default/layout/

Add <remove name="breadcrumbs" /> within

  <catalogsearch_advanced_result translate="label">
   <label>Advanced Search Result</label>
    <update handle="page_two_columns_right" />
   <remove name="breadcrumbs" />
  </catalogsearch_advanced_result>

Refresh and check... Breadcrumbs will be removed in advanced search result alone.

Upvotes: 0

Harit
Harit

Reputation: 638

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.

Upvotes: 10

Related Questions