Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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>
like image 543
angelique000 Avatar asked May 02 '14 14:05

angelique000


2 Answers

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.

like image 76
Steve Robbins Avatar answered Sep 21 '22 07:09

Steve Robbins


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

 <remove name="breadcrumbs" />
like image 42
RichTea Avatar answered Sep 20 '22 07:09

RichTea