How to remove "Categories" link from breadcrumbs

Merchant
Tól től France
Tagság máj. 2021 óta

Hello,
I would like to know how to remove the active link from the category on the breadcrumb trail, see the picture below

Thank you

LiteCart Fan
Tól től Thailand
Tagság aug. 2017 óta

Do you want to remove the whole word or only the link?

Merchant
Tól től France
Tagság máj. 2021 óta

No I only want to remove the link

I deleted line 32 of the category.inc.php file but the link is still present on the breadcrumb trail


  foreach (array_slice($category->path, 0, -1, true) as $category_crumb) {
    breadcrumbs::add($category_crumb->name, document::ilink('category', array('category_id' => $category_crumb->id)));
  }```
LiteCart Fan
Tól től Thailand
Tagság aug. 2017 óta

You can change it in admin/translation, find the word Categories and add a html tag that link to #
<a href="#">Categories:</a>
So you will still have the word but if people will click it nothing will happen

Merchant
Tól től France
Tagság máj. 2021 óta

the problem is that by doing this the category link in the menu bar shifts and is no longer active, the one on the left turns blue.

I would only like to remove the link in the breadcrumb trail

Merchant
Tól től France
Tagság máj. 2021 óta

I found ...
you had to modify the product.inc.php file on line 53.
it can be used by someone

breadcrumbs::add(language::translate('title_categories', 'Categories'), document::ilink('categories'));

breadcrumbs::add(language::translate('title_categories');

tim
Founder
Tól től Sweden
Tagság máj. 2013 óta
tim

@natwood Very good! That's the right way to remove the anchor tag and just leave the breaccrumb text.

LiteCart Fan
Tól től Germany
Tagság jan. 2020 óta

There is a small error. If you do so like written here, your page will be blank (no content). You have to add an second ")" at the end, so:

breadcrumbs::add(language::translate('title_categories', 'Categories'));

Ezt a témát a hosszú inaktivitás miatt bezártuk. A hozzászólás nem lehetséges.
Ez a weboldal nem használ cookie-kat és nem használ harmadik féltől származó nyomkövetési technológiát. Úgy gondoljuk, hogy jobban tudjuk csinálni, mint mások, és tényleg gondolunk az Ön magánéletére.