Reputation: 487
I want to remove the breadcrumbs from magento pages, especially from the product detail and product listing pages.
Can this be done without changing any code? Only inside the admin-panel?
Upvotes: 2
Views: 10885
Reputation: 2214
Your question is not clear. However following information will give you an idea
For an example, you can see breadcrumbs that is setting for catalog
menu in admin side in this file location app\code\core\Mage\Adminhtml\controllers\CatalogController.php
as like this
$this->_addBreadcrumb(Mage::helper('adminhtml')->__('Catalog'), Mage::helper('adminhtml')->__('Catalog'));
But you can't see this breadcrumb anywhere under catalog
menu in admin.
Check out my answer on this thread. This wil give you a lot of ideas
If you need to show breadcrumbs only for category pages and not for any other pages , you can use this extesnion. It is absolutely free :)
Hope that makes sense
So you need to remove breadcrumbs from product detail page and product list page. The solution is this.
create a file app/design/frontend/<your_package>/<your_theme>/layout/local.xml
.
Put this code inside that file
<layout>
<!-- this part removes breadcrumbs from product view page -->
<catalog_product_view>
<remove name="breadcrumbs"/>
</catalog_product_view>
<!-- this part removes breadcrumbs from product list pages -->
<catalog_category_default>
<remove name="breadcrumbs"/>
</catalog_category_default>
<catalog_category_layered>
<remove name="breadcrumbs"/>
</catalog_category_layered>
</layout>
Please note you cant remove breadcrumbs through admin side. You can do this only through code
Upvotes: 2
Reputation: 5788
Best way is to go to:
System --> Web --> Default Pages --> Show Breadcrumbs for CMS Pages
and turn them off.
Another way (shown here) is to create/extend the local.xml
file inside your template directory.
e.g /app/design/frontend/default/YOURTEMPLATE/layout/local.xml
<?xml version="1.0"?>
<layout version="0.1.0">
<cms_index_index>
<reference name="root">
<remove name="breadcrumbs"/>
</reference>
</cms_index_index>
</layout>
Upvotes: 7