angelique000
angelique000

Reputation: 909

magento remove breadcrumbs from home only with local.xml

Is it possible to remove the breadcrumbs from only the homepage, with 1 local.xml in magento? How can I do it?

I've tried this, but it's not working... :(

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

Upvotes: 5

Views: 11787

Answers (2)

Steve Robbins
Steve Robbins

Reputation: 13822

You don't need the reference. remove will find the block named breadcrumbs and remove it wherever it may be.

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

Also try adding

<remove name="breadcrumbs"/>

To your home page's CMS layout updates in the admin. It could be an issue with your local.xml.

Upvotes: 4

RichTea
RichTea

Reputation: 1435

Easiest way is to add to the Layout Update XML of your homepage CMS page:

 <remove name="breadcrumbs" />

Upvotes: 2

Related Questions