user471987
user471987

Reputation: 119

Which file should I edit to change the breadcrumbs starting point?

I wanted to change the breadcrumbs starting point from Home to My title. I edited the file /magento/app/code/core/Mage/Catalog/Block/Breadcrumbs.php but it doesn't seem to be working. Is XML playing a role in that?

thanks

Upvotes: 0

Views: 4587

Answers (2)

35435
35435

Reputation: 11

turn on Translate Inline in System>Config>Admin>Developer, you will be able to edit the text on the page (after refreshing, click the red box then the little book icon)

Upvotes: 0

Jonathan Day
Jonathan Day

Reputation: 18692

Your best option is to use Magento's translate feature. Notice how the text in Breadcrumbs.php is wrapped with ->__('text') which instructs Magento to see if there is a translation for text for the current module. If you turn on Translate Inline in System>Config>Admin>Developer, you will be able to edit the text on the page (after refreshing, click the red box then the little book icon). This will then be entered into the database in the core_translate table and replaced in future page renders.

As a general rule, you should never edit files in app/code/code as you will break future upgrades and patches.

Upvotes: 2

Related Questions