Question

When Full Page Cache is on the breadcrumbs show up on the home page,

i've tried changing the line <?php if($crumbs && is_array($crumbs)): ?> to <?php if($crumbs && is_array($crumbs) && !$this->getIsHomePage()): ?> in \app\design\frontend\enterprise\[THEME]\template\page\html\breadcrumbs.phtml yet it still shows up

i've tried adding <remove name="breadcrumbs" /> to the "Layout Update XML" of the CMS page which is the homepage yet it still shows up

I've tried putting in Mage::log() or a <p> before the if statement however it works on every other page but the home page

a google search gives me nothing that i don't know (the Layout Update XML thing i got from one site) and most results are asking how to add the breadcrumbs when i search for "how to remove breadcrumbs from homepage

i'm wondering if there is any other way to remove the breadcrumbs from the homepage which i may have yet tried

Was it helpful?

Solution

What Tim means is your local.xml file inside your template directory like /app/design/frontend/default/YOURTEMPLATE/layout

If the file does not exist, create it with the following content:

<?xml version="1.0"?>
<layout version="0.1.0">
<cms_index_index>
    <reference name="root">
        <remove name="breadcrumbs"/>
    </reference>
</cms_index_index>
</layout>

This should work. Also refresh cashes.

OTHER TIPS

If you want to remove breadcrumbs on every CMS Pages, try removing from System-->Web-->Default Pages-->Show Breadcrumbs for CMS Pages

Magento Add Breadcrumbs For CMS Page check this link you can add in single cms page Breadcrumbs follow below code.

you can added this code in you cms page. edit your cmspage ->design->Layout Update XML->

<reference name="root">
<action method="setTemplate"><template>page/category.phtml</template></action>
 <action method="unsetChild"><alias>breadcrumbs</alias></action>    
    <block type="page/html_breadcrumbs" name="breadcrumbs" as="breadcrumbs">
        <action method="addCrumb">
            <crumbName>Home</crumbName>
            <crumbInfo><label>Home</label><title>Home</title><link>/</link></crumbInfo>
        </action>
        <action method="addCrumb">
            <crumbName>About us</crumbName>
            <crumbInfo><label>SHOP</label><title>SHOP</title></crumbInfo>
        </action>      
    </block>
</reference>

this code for breadcrumbs my page name is shop add title shop and also change label shop

<action method="unsetChild"><alias>breadcrumbs</alias></action>    
    <block type="page/html_breadcrumbs" name="breadcrumbs" as="breadcrumbs">
        <action method="addCrumb">
            <crumbName>Home</crumbName>
            <crumbInfo><label>Home</label><title>Home</title><link>/</link></crumbInfo>
        </action>
        <action method="addCrumb">
            <crumbName>About us</crumbName>
            <crumbInfo><label>SHOP</label><title>SHOP</title></crumbInfo>
        </action>      
    </block>

I think you can help this code.

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top