natwood Merchant Fra France Medlem siden mai 2021 natwood mai 15 2021 10:08 a.m. 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
tim Founder Fra Sweden Medlem siden mai 2013 tim mai 16 2021 12:50 a.m. Just remove this line: https://github.com/litecart/litecart/blob/46cce12934f839315746dfda7ab6c69d91ead4a1/public_html/pages/category.inc.php#L32
vilaiporn LiteCart Fan Fra Thailand Medlem siden aug. 2017 vilaiporn mai 16 2021 03:15 a.m. Do you want to remove the whole word or only the link?
natwood Merchant Fra France Medlem siden mai 2021 natwood mai 16 2021 10:33 a.m. 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))); }```
vilaiporn LiteCart Fan Fra Thailand Medlem siden aug. 2017 vilaiporn mai 16 2021 11:39 a.m. 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
natwood Merchant Fra France Medlem siden mai 2021 natwood mai 16 2021 01:37 p.m. 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
natwood Merchant Fra France Medlem siden mai 2021 natwood mai 16 2021 02:59 p.m. 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 Fra Sweden Medlem siden mai 2013 tim mai 16 2021 05:58 p.m. @natwood Very good! That's the right way to remove the anchor tag and just leave the breaccrumb text.
hansyland LiteCart Fan Fra Germany Medlem siden jan. 2020 hansyland aug. 10 2021 12:06 p.m. 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'));